To create a 4-way universal raise of static binaries in OSX 10.6, I do the following:
Download the update from the promotion site.
Extract the archive and cd to the boost_x_xx_x folder (where x_xx_x is the upgrade version you are using).
Run:
./bootstrap.sh and then
# The name of the Boost.Jam program changed from "bjam" to "b2" in Boost 1.47.0
# Replace "b2" with "bjam" if you are compiling a version <= 1.46.1
./b2 macosx-version=10.6 macosx-version-min=10.4 architecture=combined threading=multi link=static address-model=32_64
This compiles everything except Boost.MPI (which requires the --with-mpi ). Build products fall into ./stage
UPDATE: If you installed Xcode 4, you need to perform an additional step. Xcode 4 does not ship with compilers or libraries capable of customizing PowerPC. Unfortunately, the compilers that ship with Xcode 4 become the default compilers used by Boost. To force the use of compilers that ship with Xcode 3, you must complete an additional step. Please note that you must install Xcode 3 if it is not available on your system.
After running ./bootstrap.sh and before starting b2 open:
./tools/build/v2/user-config.jam
Add the following line to this file. This instructs you to use g ++ - 4.2 from Xcode 3:
using darwin : : /Developer-old/usr/bin/g++-4.2 ;
Mankarse
source share