summaryrefslogtreecommitdiff
path: root/hints
diff options
context:
space:
mode:
authorChris 'BinGOs' Williams <chris@bingosnet.co.uk>2013-05-10 21:16:32 +0100
committerChris 'BinGOs' Williams <chris@bingosnet.co.uk>2013-06-04 19:06:37 +0100
commit929c6ecf94db1e29600848f3d1acc64c825d9fc7 (patch)
tree1a2302b0c05b2037d5a103b6e1700e96577190c9 /hints
parent1b1e45eba1d55adaa3c59ceac3ec777b9cbc2972 (diff)
downloadperl-929c6ecf94db1e29600848f3d1acc64c825d9fc7.tar.gz
Interix seems to have multi-arch so ask gcc where stuff is
Diffstat (limited to 'hints')
-rw-r--r--hints/interix.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/hints/interix.sh b/hints/interix.sh
index a53d29d1b7..acbf9c7d1e 100644
--- a/hints/interix.sh
+++ b/hints/interix.sh
@@ -14,6 +14,16 @@ rpathflag='-Wl,-R'
sharpbang='#!'
usemymalloc='false'
usenm='false'
+plibpth=''
+
+case "$plibpth" in
+'') plibpth=`LANG=C LC_ALL=C $cc -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
# This script UU/usethreads.cbu will get 'called-back' by Configure
# after it has prompted the user for whether to use threads.