Kaydet (Commit) ab4014e6 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Must use -mmacosx-version-min=10.6 when host platform is iOS simulator

Change-Id: I968ecece624fa7a951699b1958e8c20300ecc78a
üst f79d5b91
...@@ -282,8 +282,8 @@ it's just a trick to bypass some tests in the configure script. ...@@ -282,8 +282,8 @@ it's just a trick to bypass some tests in the configure script.
For the iOS simulator, using Xcode 4.3 and clang both for the host and For the iOS simulator, using Xcode 4.3 and clang both for the host and
build platform: build platform:
CXX=ccache /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk CXX=ccache /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk -mmacosx-version-min=10.6
CC=ccache /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk CC=ccache /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk -mmacosx-version-min=10.6
CC_FOR_BUILD=ccache clang -arch i386 -mmacosx-version-min=10.6 CC_FOR_BUILD=ccache clang -arch i386 -mmacosx-version-min=10.6
CXX_FOR_BUILD=ccache clang++ -arch i386 -mmacosx-version-min=10.6 CXX_FOR_BUILD=ccache clang++ -arch i386 -mmacosx-version-min=10.6
--enable-werror --enable-werror
...@@ -298,6 +298,10 @@ Note that you will have to install autoconf and automake yourself ...@@ -298,6 +298,10 @@ Note that you will have to install autoconf and automake yourself
before running autogen.sh. They are no longer included in Xcode 4.3 before running autogen.sh. They are no longer included in Xcode 4.3
(not even in the add-on "command line tools"). (not even in the add-on "command line tools").
The -mmacosx-version-min=10.6 is necessary when building for the iOS
simulator to avoid clang replacing simple calls to fprintf with calls
to fwrite$UNIX2003 which Xcode then warns that doesn't exist on iOS.
Android Android
------- -------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment