Blame SOURCES/ncurses-config.patch

c73763
diff -up ncurses-6.2-20210501/misc/gen-pkgconfig.in.config ncurses-6.2-20210501/misc/gen-pkgconfig.in
c73763
--- ncurses-6.2-20210501/misc/gen-pkgconfig.in.config	2021-05-04 15:25:14.136139064 +0200
c73763
+++ ncurses-6.2-20210501/misc/gen-pkgconfig.in	2021-05-04 15:26:46.473363104 +0200
c73763
@@ -83,7 +83,7 @@ if [ "$includedir" != "/usr/include" ];
c73763
 fi
c73763
 
c73763
 lib_flags=
c73763
-for opt in -L$libdir @EXTRA_PKG_LDFLAGS@ @LIBS@
c73763
+for opt in -L$libdir @LIBS@
c73763
 do
c73763
 	case $opt in
c73763
 	-l*) # LIBS is handled specially below
c73763
diff -up ncurses-6.2-20210501/misc/ncurses-config.in.config ncurses-6.2-20210501/misc/ncurses-config.in
c73763
--- ncurses-6.2-20210501/misc/ncurses-config.in.config	2021-04-18 00:22:52.000000000 +0200
c73763
+++ ncurses-6.2-20210501/misc/ncurses-config.in	2021-05-04 15:28:41.567642360 +0200
c73763
@@ -41,7 +41,6 @@ exec_prefix="@exec_prefix@"
c73763
 
c73763
 bindir="@bindir@"
c73763
 includedir="@includedir@"
c73763
-libdir="@libdir@"
c73763
 datarootdir="@datarootdir@"
c73763
 datadir="@datadir@"
c73763
 mandir="@mandir@"
c73763
@@ -101,7 +100,7 @@ fi
c73763
 # There is no portable way to find the list of standard library directories. 
c73763
 # Require a POSIX shell anyway, to keep this simple.
c73763
 lib_flags=
c73763
-for opt in -L$libdir @EXTRA_PKG_LDFLAGS@ $LIBS
c73763
+for opt in $LIBS
c73763
 do
c73763
 	case $opt in
c73763
 	-specs*) # ignore linker specs-files which were used to build library
c73763
@@ -114,13 +113,13 @@ do
c73763
 		lib_check=`echo "x$opt" | sed -e 's/^.-L//'`
c73763
 		[ -d "$lib_check" ] || continue
c73763
 		case "$lib_check" in
c73763
-		@LD_SEARCHPATH@) # skip standard libdir
c73763
+		////) # skip standard libdir (disabled for multilib)
c73763
 			if [ "$lib_check" = "$libdir" ]
c73763
 			then
c73763
 				lib_first=yes
c73763
 				IFS_save="$IFS"
c73763
 				IFS='|'
c73763
-				LIBDIRS="@LD_SEARCHPATH@"
c73763
+				LIBDIRS=""
c73763
 				for lib_check in $LIBDIRS
c73763
 				do
c73763
 					if [ -d "$lib_check" ]
c73763
@@ -268,7 +267,6 @@ ENDECHO
c73763
 		echo $INCS
c73763
 		;;
c73763
 	--libdir)
c73763
-		echo "${libdir}"
c73763
 		;;
c73763
 	--mandir)
c73763
 		echo "${mandir}"