diff options
author | Tor Arne Vestbø <tor.arne.vestbo@digia.com> | 2013-02-15 18:11:04 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-02-19 07:56:34 +0100 |
commit | 71b4325cb7031452e922531c78efdc16b8577648 (patch) | |
tree | 82e5f2f9aa12a08833effdbeab1bf5ff986b8bab /config.tests/unix | |
parent | 3988ad95f757f7531e8133a10e83f74ab0ce1b96 (diff) |
Clean up how we build against SDKs on Mac OS
Instead of setting -isysroot in both arch.test, compile.test, the various
mkspecs, and sdk.prf, we now propgate the chosen SDK as the qmake
variable QMAKE_MAC_SDK, which is then handled exclusivly in sdk.prf.
The QMAKE_MAC_SDK variable, and -sdk argument to configure, is expected
to be of the short-form name, eg macosx or iphoneos, not a full path, as
that's what Xcode also expects. We take care of translating that into
a full path for -isysroot/-syslibroot in sdk.prf, using xcodebuild as
a helper.
Change-Id: I281655b2fa5180c6e78ffdce36824e4a91447570
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Diffstat (limited to 'config.tests/unix')
-rwxr-xr-x | config.tests/unix/arch.test | 14 | ||||
-rwxr-xr-x | config.tests/unix/compile.test | 5 |
2 files changed, 0 insertions, 19 deletions
diff --git a/config.tests/unix/arch.test b/config.tests/unix/arch.test index f25076600c..7250d737ba 100755 --- a/config.tests/unix/arch.test +++ b/config.tests/unix/arch.test @@ -19,20 +19,6 @@ fi LFLAGS="$SYSROOT_FLAG" CXXFLAGS="$SYSROOT_FLAG" -while [ "$#" -gt 0 ]; do - PARAM=$1 - case $PARAM in - -sdk) - LFLAGS="$LFLAGS -Wl,-syslibroot,$2" - CXXFLAGS="$CXXFLAGS -isysroot $2" - shift - ;; - *) ;; - esac - shift -done - - # debuggery [ "$VERBOSE" = "yes" ] && echo "Determining architecture... ($*)" diff --git a/config.tests/unix/compile.test b/config.tests/unix/compile.test index 3f8c5c51a2..79e7619d5b 100755 --- a/config.tests/unix/compile.test +++ b/config.tests/unix/compile.test @@ -32,11 +32,6 @@ while [ "$#" -gt 0 ]; do MAC_ARCH_LFLAGS="$MAC_ARCH_LFLAGS -arch $2" shift ;; - -sdk) - LFLAGS="$LFLAGS -Wl,-syslibroot,$2" - CXXFLAGS="$CXXFLAGS -isysroot $2" - shift - ;; -F*|-m*|-x*) LFLAGS="$LFLAGS $PARAM" CXXFLAGS="$CXXFLAGS $PARAM" |