summaryrefslogtreecommitdiff
path: root/hints
diff options
context:
space:
mode:
authorPino Toscano <pino@debian.org>2011-08-10 08:11:33 +0300
committerSteffen Mueller <smueller@cpan.org>2011-10-31 08:40:19 +0100
commita1da11a30dfa4f3543dcab00834ff535202f5085 (patch)
tree36180bc2534fdd8cf6c93b1090cdf9e4643b4235 /hints
parentc66e013fd39470e69c07a870bbc2b5474887239d (diff)
downloadperl-a1da11a30dfa4f3543dcab00834ff535202f5085.tar.gz
Improve general GNU hints, needed for GNU/Hurd.
Bug-Debian: http://bugs.debian.org/636609 Patch-Name: fixes/hurd-hints.diff With minor modifications to add Pino to AUTHORS.
Diffstat (limited to 'hints')
-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'