aboutsummaryrefslogtreecommitdiff
path: root/examples/ncurses/patches/03-debian-ncursesconfig-omit-L.diff
blob: f4f79f4e98c83f722c4ee8564ba44126b22b46ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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
 		;;