aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid CARLIER <[email protected]>2022-02-05 11:28:55 +0000
committerDavid CARLIER <[email protected]>2022-02-05 11:28:55 +0000
commit795e5aaa9a8193438afcb9e576491e5ad54b6a3f (patch)
tree78c57c36b90219e40930d27503c307a4490937ed
parentcd19d83cb8a639fd9dfcd1f8f6538c82f8a7b33b (diff)
doc update of macos fat binary process for mac M1.
-rw-r--r--doc/building.rst11
1 files changed, 9 insertions, 2 deletions
diff --git a/doc/building.rst b/doc/building.rst
index df57e799b..9b74a3784 100644
--- a/doc/building.rst
+++ b/doc/building.rst
@@ -154,11 +154,18 @@ On macOS
A build on macOS works much like that on any other Unix-like system.
-To build a universal binary for macOS, you need to set some additional
-build flags. Do this with the `configure.py` flag `--cc-abi-flags`::
+To build a universal binary for macOS, for older macOs releases,
+you need to set some additional build flags.
+Do this with the `configure.py` flag `--cc-abi-flags`::
--cc-abi-flags="-force_cpusubtype_ALL -mmacosx-version-min=10.4 -arch i386 -arch ppc"
+
+for mac M1 on arm64, you can build the x86_64 arch version via Rosetta separately.
+Do this with with `arch -x86_64 configure.py --library-suffix=-x86_64`
+Then using lipo to create a fat binary.
+`lipo -create libbotan-arm64.dylib libbotan-x86_64.dylib -o libbotan.dylib`
+
On Windows
--------------