diff options
author | Tor Lillqvist <tml@iki.fi> | 2012-06-04 11:19:36 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2012-06-04 11:41:51 +0300 |
commit | ab4014e602a2eae0143448213579e7dc8ec5d11e (patch) | |
tree | c6366c08c14546fd84fb244caf95102938fe1cc0 /README.cross | |
parent | f79d5b911620d3a4b72925684647bc2cec454bff (diff) |
Must use -mmacosx-version-min=10.6 when host platform is iOS simulator
Change-Id: I968ecece624fa7a951699b1958e8c20300ecc78a
Diffstat (limited to 'README.cross')
-rw-r--r-- | README.cross | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/README.cross b/README.cross index c66e1d48ee4a..992352157c33 100644 --- a/README.cross +++ b/README.cross @@ -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 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 -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 +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 -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 --enable-werror @@ -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 (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 ------- |