summaryrefslogtreecommitdiff
path: root/hints
diff options
context:
space:
mode:
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.