diff options
author | cls%seawood.org <devnull@localhost> | 2001-05-04 12:10:14 +0000 |
---|---|---|
committer | cls%seawood.org <devnull@localhost> | 2001-05-04 12:10:14 +0000 |
commit | ddb71b1aa833b9e6a4dce1ca9a5549c930871bfc (patch) | |
tree | b4756a660d5b3d758208d7f4dd02b87f5a63dfc3 | |
parent | dc2e4af3d26f79a5bd1034faed74b7dc7293e4c1 (diff) | |
download | nspr-hg-ddb71b1aa833b9e6a4dce1ca9a5549c930871bfc.tar.gz |
Only use ldflags that specify directories to search (eg. -L/usr/lib) in --libs output
-rwxr-xr-x | config/nspr-config.in | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/config/nspr-config.in b/config/nspr-config.in index 23c0d70a..d6776558 100755 --- a/config/nspr-config.in +++ b/config/nspr-config.in @@ -105,7 +105,12 @@ if test "$echo_libs" = "yes"; then if test -n "$lib_nspr"; then libdirs="$libdirs -lnspr${major_version}" fi - - echo $libdirs @LDFLAGS@ @OS_LIBS@ + os_ldflags="@LDFLAGS@" + for i in $os_ldflags ; do + if echo $i | grep ^-L >/dev/null; then + libdirs="$libdirs $i" + fi + done + echo $libdirs @OS_LIBS@ fi |