From 753809b07d830c80f79b36429897dabaeaa8879f Mon Sep 17 00:00:00 2001 From: Brian Fraser Date: Wed, 22 Jan 2014 17:17:33 -0300 Subject: [PATCH] Linux hints: add some missing $ccflags --- hints/linux.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hints/linux.sh b/hints/linux.sh index c0e85f7..ed05b46 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. -- 2.7.4