diff --git a/configure b/configure index 78ae73c2d4..d130b69ef4 100755 --- a/configure +++ b/configure @@ -224,28 +224,28 @@ getXQMakeConf() getQMakeConf3 "$1" "$xspecvals" } -# relies on $TEST_COMPILER being set correctly compilerSupportsFlag() { cat >conftest.cpp </dev/null 2>&1 + compilerSupportsFlag $compiler $lflags >/dev/null 2>&1 } # $1: newline-separated list of default paths @@ -2669,7 +2669,7 @@ fi # auto-detect -fstack-protector-strong support (for QNX only currently) if [ "$XPLATFORM_QNX" = "yes" ]; then - if compilerSupportsFlag -fstack-protector-strong; then + if compilerSupportsFlag $TEST_COMPILER -fstack-protector-strong; then CFG_STACK_PROTECTOR_STRONG=yes else CFG_STACK_PROTECTOR_STRONG=no