Author: Sven Joachim 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 ;;