]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - misc/ncurses-config.in
ncurses 6.2 - patch 20210718
[ncurses.git] / misc / ncurses-config.in
index eae39a516ff3bbd9f99723939434023d8eaa1bc2..163d570419615e2a102fa805626b01050b3cc491 100644 (file)
@@ -1,5 +1,5 @@
 #!@SHELL@
-# $Id: ncurses-config.in,v 1.46 2021/01/23 23:47:46 tom Exp $
+# $Id: ncurses-config.in,v 1.49 2021/06/17 21:11:08 tom Exp $
 ##############################################################################
 # Copyright 2018-2020,2021 Thomas E. Dickey                                  #
 # Copyright 2006-2015,2017 Free Software Foundation, Inc.                    #
@@ -98,10 +98,10 @@ fi
 # are standard library directories (i.e., the linker is supposed to search
 # those directories).
 #
-# There is no portable way to find the list of standard library directories. 
+# 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_PKG_LDFLAGS@ $LIBS
+for opt in -L$libdir @EXTRA_PKG_LDFLAGS@ $LIBS
 do
        case $opt in
        -specs*) # ignore linker specs-files which were used to build library
@@ -111,7 +111,7 @@ do
                continue
                ;;
        -L*)
-               lib_check=${opt##-L} 
+               lib_check=`echo "x$opt" | sed -e 's/^.-L//'`
                [ -d "$lib_check" ] || continue
                case "$lib_check" in
                @LD_SEARCHPATH@) # skip standard libdir