aboutsummaryrefslogtreecommitdiffstats
path: root/doc/manual
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-01-03 17:07:05 -0500
committerJack Lloyd <[email protected]>2017-01-03 17:07:05 -0500
commit34c45bc3d0874ea2bbf1d83fe235d70a8b644b42 (patch)
treef87d9f640442852bbf3e8e9bc22f22d948537c56 /doc/manual
parent4bc97ad2412972d3220a19d940c2770aa7c247c6 (diff)
parent1108a2e1942435b4568ed64c7d0701711a4bd13d (diff)
Merge GH #793 Add iOS target
Diffstat (limited to 'doc/manual')
-rw-r--r--doc/manual/building.rst16
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