53 lines
1.3 KiB
Diff
53 lines
1.3 KiB
Diff
diff --git a/misc/gen-pkgconfig.in b/misc/gen-pkgconfig.in
|
|
index 8f00b82..009d215 100644
|
|
--- a/misc/gen-pkgconfig.in
|
|
+++ b/misc/gen-pkgconfig.in
|
|
@@ -80,7 +80,7 @@ if [ "$includedir" != "/usr/include" ]; then
|
|
fi
|
|
|
|
lib_flags=
|
|
-for opt in -L$libdir @LDFLAGS@ @EXTRA_LDFLAGS@ @LIBS@
|
|
+for opt in -L$libdir @LIBS@
|
|
do
|
|
case $opt in
|
|
-l*) # LIBS is handled specially below
|
|
diff --git a/misc/ncurses-config.in b/misc/ncurses-config.in
|
|
index 7f8ba69..e483af5 100644
|
|
--- a/misc/ncurses-config.in
|
|
+++ b/misc/ncurses-config.in
|
|
@@ -41,7 +41,6 @@ exec_prefix="@exec_prefix@"
|
|
|
|
bindir="@bindir@"
|
|
includedir="@includedir@"
|
|
-libdir="@libdir@"
|
|
datarootdir="@datarootdir@"
|
|
datadir="@datadir@"
|
|
mandir="@mandir@"
|
|
@@ -101,7 +100,7 @@ fi
|
|
# There is no portable way to find the list of standard library directories.
|
|
# Require a POSIX shell anyway, to keep this simple.
|
|
lib_flags=
|
|
-for opt in -L$libdir @LDFLAGS@ @EXTRA_LDFLAGS@ $LIBS
|
|
+for opt in $LIBS
|
|
do
|
|
case $opt in
|
|
-specs*) # ignore linker specs-files which were used to build library
|
|
@@ -113,9 +112,6 @@ do
|
|
-L*)
|
|
[ -d ${opt##-L} ] || continue
|
|
case ${opt##-L} in
|
|
- @LD_SEARCHPATH@) # skip standard libdir
|
|
- continue
|
|
- ;;
|
|
*)
|
|
found=no
|
|
for check in $lib_flags
|
|
@@ -235,7 +231,6 @@ ENDECHO
|
|
echo $INCS
|
|
;;
|
|
--libdir)
|
|
- echo "${libdir}"
|
|
;;
|
|
--mandir)
|
|
echo "${mandir}"
|