This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Interix seems to have multi-arch so ask gcc where stuff is
authorChris 'BinGOs' Williams <chris@bingosnet.co.uk>
Fri, 10 May 2013 20:16:32 +0000 (21:16 +0100)
committerChris 'BinGOs' Williams <chris@bingosnet.co.uk>
Tue, 4 Jun 2013 18:06:37 +0000 (19:06 +0100)
hints/interix.sh

index a53d29d..acbf9c7 100644 (file)
@@ -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.