Blame SOURCES/ncurses-config.patch

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