diff options
author | Simon Warta <[email protected]> | 2017-01-03 00:19:29 +0100 |
---|---|---|
committer | Simon Warta <[email protected]> | 2017-01-03 00:19:29 +0100 |
commit | 37932ddc6f98c75cb37330294cba5f204612ce53 (patch) | |
tree | 1a8c822549b72e906f2fdcef90d008ff23d67623 /doc/manual | |
parent | 18b9f473081d15a54064c46fb5bf455bc1c5447c (diff) |
Update docs on building for ios
Diffstat (limited to 'doc/manual')
-rw-r--r-- | doc/manual/building.rst | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/doc/manual/building.rst b/doc/manual/building.rst index a92d1c6a5..c9e8a0bbd 100644 --- a/doc/manual/building.rst +++ b/doc/manual/building.rst @@ -186,8 +186,8 @@ your documentation and/or local expert for details). For iOS using XCode ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -For iOS, you typically build for 3 architectures: armv7 (32 bit, o -lder iOS devices), armv8-a (64 bit, recent iOS devices) and x86_64 for +For iOS, you typically build for 3 architectures: armv7 (32 bit, older +iOS devices), armv8-a (64 bit, recent iOS devices) and x86_64 for the iPhone simulator. You can build for these 3 architectures and then create a universal binary containing code for all of these architectures, so you can link to Botan for the simulator as well as @@ -195,20 +195,20 @@ for an iOS device. To cross compile for armv7, configure and make with:: - $ ./configure.py --prefix="iphone-32" --cpu=armv7 --cc=clang \ - --cc-abi-flags="-arch armv7 -stdlib=libc++" + $ ./configure.py --os=ios --prefix="iphone-32" --cpu=armv7 --cc=clang \ + --cc-abi-flags="-arch armv7" xcrun --sdk iphoneos make install To cross compile for armv8-a, configure and make with:: - $ ./configure.py --prefix="iphone-64" --cpu=armv8-a --cc=clang \ - --cc-abi-flags="-arch arm64 -stdlib=libc++" + $ ./configure.py --os=ios --prefix="iphone-64" --cpu=armv8-a --cc=clang \ + --cc-abi-flags="-arch arm64" xcrun --sdk iphoneos make install To compile for the iPhone Simulator, configure and make with:: - $ ./configure.py --prefix="iphone-simulator" --cpu=x86_64 --cc=clang \ - --cc-abi-flags="-arch x86_64 -stdlib=libc++" + $ ./configure.py --os=ios --prefix="iphone-simulator" --cpu=x86_64 --cc=clang \ + --cc-abi-flags="-arch x86_64" xcrun --sdk iphonesimulator make install Now create the universal binary and confirm the library is compiled |