diff options
author | lloyd <[email protected]> | 2014-01-01 19:59:59 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2014-01-01 19:59:59 +0000 |
commit | 62faac373c07cfe10bc8c309e89ebdd30d8e5eaa (patch) | |
tree | 905ddf197446fd963640d4328b3d90b5969cb336 | |
parent | eb4411a8875c9d70268d57e3a0ee8b5137115296 (diff) |
Document the easy way to do this
-rw-r--r-- | doc/building.rst | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/doc/building.rst b/doc/building.rst index 4ec543409..5c30e11a3 100644 --- a/doc/building.rst +++ b/doc/building.rst @@ -140,21 +140,10 @@ self-test program:: Building Universal Binaries &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& -To build a universal binary for OS X, some simple modifications are -required. First, create a CPU type for the target universalbinary, -one that doesn't specify any special handlers. This is done by -creating an empty file in src/build-data/arch:: +To build a universal binary for OS X, you need to set some additional +build flags. Do this with the --cc-abi-flags option:: - $ touch src/build-data/arch/universalbinary.txt - -and then adding a special target for it in gcc, by adding the line:: - - universalbinary -> "-force_cpusubtype_ALL -mmacosx-version-min=10.4 -arch i386 -arch ppc" - -in the section marked `<mach_abi_linking>` in -`src/build-data/cc/gcc.txt`. Then configure with:: - - $ ./configure.py --cpu=universalbinary [other options here] + $ ./configure.py [other arguments] --cc-abi-flags="-force_cpusubtype_ALL -mmacosx-version-min=10.4 -arch i386 -arch ppc" On MS Windows ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |