Remove the section about universal binaries from macOS docs
This is not relevant any longer, all supported macOS versions support x86-64 binaries and the latest ones don't support anything else, so there is no need to create i386 binaries any more (and PPC ones don't work since ages).
This commit is contained in:
parent
7ec0d640ca
commit
456743666c
@ -82,45 +82,3 @@ the libraries using commands like this:
|
||||
|
||||
$ cd utils/wxrc
|
||||
$ g++ -o wxrc wxrc.cpp `wx-config --cxxflags --libs base,xml`
|
||||
|
||||
Creating universal binaries {#osx_universal_bin}
|
||||
---------------------------
|
||||
|
||||
The Xcode projects for the wxWidgets library and minimal project are set up
|
||||
to create universal binaries.
|
||||
|
||||
If using the Apple command line tools, pass --enable-universal_binary when
|
||||
configuring wxWidgets. This will create the libraries for all the supported
|
||||
architectures, currently ppc, i386 and x86_64 . You may explicitly specify
|
||||
the architectures to use as a comma-separated list,
|
||||
e.g. --enable-universal_binary=i386,x86_64.
|
||||
|
||||
Notice that if you use wx-config --libs to link your application, the -arch
|
||||
flags are not added automatically as it is possible to link e.g. x86_64-only
|
||||
program to a "fat" library containing other architectures. If you want to
|
||||
build a universal application, you need to add the necessary "-arch xxx" flags
|
||||
to your project or makefile separately.
|
||||
|
||||
As an alternative to using --enable-universal_binary, you can build for
|
||||
each architecture separately and then use the lipo tool to glue the
|
||||
binaries together. Assuming building on a PPC system:
|
||||
|
||||
1. First build in the usual way to get the PPC library.
|
||||
|
||||
2. Then, build for Intel, in a different folder. This time use:
|
||||
|
||||
export CFLAGS="-g -isysroot /Developer/SDKs/MacOSX10.7.sdk -arch i386"
|
||||
export LDFLAGS="-syslibroot,/Developer/SDKs/MacOSX10.7.sdk"
|
||||
|
||||
./configure --disable-dependency-tracking --enable-static=yes --enable-shared=no \
|
||||
--target=i386-apple-darwin8 --host=powerpc-apple-darwin8 --build=i386-apple-darwin8
|
||||
|
||||
You will need to reverse the powerpc and i386 parameters everywhere to build PPC on an Intel
|
||||
machine.
|
||||
|
||||
3. Use lipo to glue the binaries together.
|
||||
|
||||
See also:
|
||||
http://developer.apple.com/technotes/tn2005/tn2137.html
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user