diff options
author | Igor Pashev <igor.pashev@nexenta.com> | 2012-12-19 13:02:54 +0400 |
---|---|---|
committer | Igor Pashev <igor.pashev@nexenta.com> | 2012-12-19 13:05:12 +0400 |
commit | 3e567218b60d7f885e769e1a2a07d84d38f11c13 (patch) | |
tree | f43668e026c492f304f4c827fc4b567ca85b1963 /examples/ncurses/patches/03-debian-ncursesconfig-omit-L.diff | |
parent | fdcf880b3c8c67f08453f553474a551e9707d29d (diff) | |
download | cibs-3e567218b60d7f885e769e1a2a07d84d38f11c13.tar.gz |
Update examples
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 + ;; |