From 1da978416d89b86d92087e8dc51bdb305b6ed58c Mon Sep 17 00:00:00 2001 From: Peter Hartmann Date: Thu, 18 Oct 2012 16:40:33 +0200 Subject: configure: state compiler explicitly when testing for supported flags ... so we can test those functions with host and cross compilers. Change-Id: Ifebfdac54580633c797f77b139514cf9d66edd8c Reviewed-by: Oswald Buddenhagen --- configure | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 -- cgit v1.2.3