summaryrefslogtreecommitdiff
path: root/hints/gnu.sh
diff options
context:
space:
mode:
Diffstat (limited to 'hints/gnu.sh')
-rw-r--r--hints/gnu.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/hints/gnu.sh b/hints/gnu.sh
index c1ba2db670..f07564269d 100644
--- a/hints/gnu.sh
+++ b/hints/gnu.sh
@@ -8,10 +8,22 @@ set `echo X "$libswanted "| sed -e 's/ nsl / /' -e 's/ c / pthread /'`
shift
libswanted="$*"
+# Debian 4.0 puts ndbm in the -lgdbm_compat library.
+libswanted="$libswanted gdbm_compat"
+
case "$optimize" in
'') optimize='-O2' ;;
esac
+case "$plibpth" in
+'') plibpth=`gcc -print-search-dirs | grep libraries |
+ cut -f2- -d= | tr ':' $trnl | grep -v 'gcc' | sed -e 's:/$::'`
+ set X $plibpth # Collapse all entries on one line
+ shift
+ plibpth="$*"
+ ;;
+esac
+
# Flags needed to produce shared libraries.
lddlflags='-shared'