diff options
Diffstat (limited to 'examples/ncurses/patches/03-debian-ncursesconfig-omit-L.diff')
-rw-r--r-- | examples/ncurses/patches/03-debian-ncursesconfig-omit-L.diff | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/examples/ncurses/patches/03-debian-ncursesconfig-omit-L.diff b/examples/ncurses/patches/03-debian-ncursesconfig-omit-L.diff new file mode 100644 index 0000000..f4f79f4 --- /dev/null +++ b/examples/ncurses/patches/03-debian-ncursesconfig-omit-L.diff @@ -0,0 +1,35 @@ +Author: Sven Joachim <svenjoac@gmx.de> +Description: Omit -L part from ncurses5{w,}-config output + "ncurses5-config --libs" includes a "-L" part which is not needed + since the library is installed in a directory in the default linker + search path. The value is also wrong if ncurses-bin is of a + different architecture than libncurses5-dev. + . + Upstream included a similar patch in the 20110507 patchlevel to omit + the -L part if $libdir is /usr/lib. Until there is a way to obtain + the multiarch path without running dpkg-architecture our patch is not + upstreamable. +Bug-Debian: http://bugs.debian.org/638281 +Forwarded: not-needed +Last-Update: 2011-08-24 + +--- + misc/ncurses-config.in | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +--- a/misc/ncurses-config.in ++++ b/misc/ncurses-config.in +@@ -85,11 +85,11 @@ + --libs) + if test @TINFO_NAME@ = @LIB_NAME@ ; then + sed -e 's,^[ ]*,,' -e 's, [ ]*, ,g' -e 's,[ ]*$,,' <<-ENDECHO +- -L$libdir @EXTRA_LDFLAGS@ -l${THIS} @LIBS@ ++ @EXTRA_LDFLAGS@ -l${THIS} @LIBS@ + ENDECHO + else + sed -e 's,^[ ]*,,' -e 's, [ ]*, ,g' -e 's,[ ]*$,,' <<-ENDECHO +- -L$libdir @EXTRA_LDFLAGS@ -l${THIS} -l${TINFO_LIB} @LIBS@ ++ @EXTRA_LDFLAGS@ -l${THIS} -l${TINFO_LIB} @LIBS@ + ENDECHO + fi + ;; |