summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorThomas Senyk <thomas.senyk@pelagicore.com>2012-07-19 18:39:50 +0200
committerQt by Nokia <qt-info@nokia.com>2012-07-20 17:00:14 +0200
commiteb94e7abb9edf0e852146dd9b4735ebe4256b3d7 (patch)
tree55cf3b483b0164b094ddf667194a7a79891b1ec3 /configure
parentdc3ceed88dc12b71d7ff6b45a7374257800351ed (diff)
Adding cflag -c to configure's --sysroot test.
This forces compiler-only (avoid linker). Otherwise fails if linker needs more options. This happens for trimslice using codesourcery toolchain. Change-Id: Iea509bf0f53b888505a5ac0fe15b5705712a2fce Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index 57ce1527a2..c82a7b0d5b 100755
--- a/configure
+++ b/configure
@@ -3400,7 +3400,7 @@ fi
SYSROOT_FLAG=
if [ -n "$CFG_SYSROOT" ]; then
- if compilerSupportsFlag --sysroot="$CFG_SYSROOT"; then
+ if compilerSupportsFlag -c --sysroot="$CFG_SYSROOT"; then
[ "$OPT_VERBOSE" = "yes" ] && echo "Setting sysroot to: $CFG_SYSROOT"
SYSROOT_FLAG="--sysroot=$CFG_SYSROOT"
else