summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorDanny Boelens <dannyb@enfocus.com>2012-07-20 15:26:07 +0200
committerQt by Nokia <qt-info@nokia.com>2012-07-21 00:53:40 +0200
commit13b1395924032e35b678b3254a5b8315b6862f6a (patch)
treee486319f484bbddceea993b7ccd1ad762e23a5d0 /configure
parent55640cd3eeae4e9b9589b1a7463190fa4c227b2b (diff)
Fix Mac OS X architecture detection for non-default Xcode setup.
The arch.test script is now using SDK settings passed to it. If you install Xcode without the "UNIX Development" option, this is essential to let the compiler find standard headers and let the test program compile successfully. In addition, let configure pass the SDK settings given on the command line to the arch.test script. Change-Id: I49601d3068d83a71e21fdbac287857f2b7abedd1 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure8
1 files changed, 4 insertions, 4 deletions
diff --git a/configure b/configure
index 9a107151ae..c91dc2d5a3 100755
--- a/configure
+++ b/configure
@@ -2541,7 +2541,7 @@ if [ -n "$CFG_SYSROOT" ]; then
else
SYSROOT_FLAG=
fi
-export SYSROOT_FLAG # used by config.tests/unix/compile.test
+export SYSROOT_FLAG # used by config.tests/unix/{compile.test,arch.test}
# auto-detect precompiled header support
if [ "$CFG_PRECOMPILE" = "auto" ]; then
@@ -3752,9 +3752,9 @@ fi
# determine the target and host architectures
#-------------------------------------------------------------------------------
-# Use config.tests/arch/arch.pro to has the compiler tell us what the target architecture is
+# Use config.tests/arch/arch.pro to have the compiler tell us what the target architecture is
OUTFILE=$outpath/arch.result
-"$unixtests/arch.test" "$XQMAKESPEC" $OPT_VERBOSE "$relpath" "$outpath" "$OUTFILE" "CFG"
+"$unixtests/arch.test" "$XQMAKESPEC" $OPT_VERBOSE "$relpath" "$outpath" "$OUTFILE" "CFG" $MAC_CONFIG_TEST_COMMANDLINE
if [ $? -eq 0 ]; then
eval `cat "$OUTFILE"`
else
@@ -3767,7 +3767,7 @@ rm -f "$OUTFILE" 2>/dev/null
if [ "$QMAKESPEC" != "$XQMAKESPEC" ]; then
# Do the same test again, using the host compiler
- SYSROOT_FLAG= "$unixtests/arch.test" "$QMAKESPEC" $OPT_VERBOSE "$relpath" "$outpath" "$OUTFILE" "CFG_HOST"
+ SYSROOT_FLAG= "$unixtests/arch.test" "$QMAKESPEC" $OPT_VERBOSE "$relpath" "$outpath" "$OUTFILE" "CFG_HOST" $MAC_CONFIG_TEST_COMMANDLINE
if [ $? -eq 0 ]; then
eval `cat "$OUTFILE"`
else