summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Senyk <thomas.senyk@pelagicore.com>2012-07-19 16:39:50 (GMT)
committerQt by Nokia <qt-info@nokia.com>2012-07-20 15:00:14 (GMT)
commiteb94e7abb9edf0e852146dd9b4735ebe4256b3d7 (patch)
tree55cf3b483b0164b094ddf667194a7a79891b1ec3
parentdc3ceed88dc12b71d7ff6b45a7374257800351ed (diff)
downloadQt-eb94e7abb9edf0e852146dd9b4735ebe4256b3d7.zip
Qt-eb94e7abb9edf0e852146dd9b4735ebe4256b3d7.tar.gz
Qt-eb94e7abb9edf0e852146dd9b4735ebe4256b3d7.tar.bz2
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>
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index 57ce152..c82a7b0 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