summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Fraser <fraserbn@gmail.com>2014-01-22 17:17:33 -0300
committerBrian Fraser <fraserbn@gmail.com>2014-01-26 14:44:18 -0300
commit753809b07d830c80f79b36429897dabaeaa8879f (patch)
tree3a2627d20c65ac3a860db1d2e6bb1f8dab0d99c6
parentdd0988999507e169c0ac534ff0ef3bcd03261dc8 (diff)
downloadperl-753809b07d830c80f79b36429897dabaeaa8879f.tar.gz
Linux hints: add some missing $ccflags
-rw-r--r--hints/linux.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/hints/linux.sh b/hints/linux.sh
index c0e85f765f..ed05b46715 100644
--- a/hints/linux.sh
+++ b/hints/linux.sh
@@ -177,7 +177,7 @@ else
fi
case "$plibpth" in
-'') plibpth=`LANG=C LC_ALL=C $gcc -print-search-dirs | grep libraries |
+'') plibpth=`LANG=C LC_ALL=C $gcc $ccflags $ldflags -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
@@ -205,7 +205,7 @@ main() {
exit(0); /* succeed (yes, it's ELF) */
}
EOM
-if ${cc:-gcc} try.c >/dev/null 2>&1 && $run ./a.out; then
+if ${cc:-gcc} $ccflags $ldflags try.c >/dev/null 2>&1 && $run ./a.out; then
cat <<'EOM' >&4
You appear to have ELF support. I'll try to use it for dynamic loading.