Boostのsystemをビルド

ビルド環境

ビルド

BoostのsystemをビルドしUniversal Binaryのライブラリを作成する。

iMac:boost_1_39_0 kuru$ ./bjam --toolset=darwin --with-system link=static runtime-link=static architecture=combined address-model=32_64

Building C++ Boost.

After the build, the headers will be located at
  
    /Users/kuru/Documents/00_Atotok/00.projects/library/boost_1_39_0
    
The libraries will be located at  
    
    /Users/kuru/Documents/00_Atotok/00.projects/library/boost_1_39_0/stage/lib
     
Use 'bjam install --prefix=<path>' if you wish to install headers and 
libraries to a different location and remove the source tree.


...found 82 targets...
...updating 20 targets...
common.mkdir bin.v2/libs/system
common.mkdir bin.v2/libs/system/build
common.mkdir bin.v2/libs/system/build/darwin-4.0.1
common.mkdir bin.v2/libs/system/build/darwin-4.0.1/release
common.mkdir bin.v2/libs/system/build/darwin-4.0.1/release/address-model-32_64
common.mkdir bin.v2/libs/system/build/darwin-4.0.1/release/address-model-32_64/architecture-combined
common.mkdir bin.v2/libs/system/build/darwin-4.0.1/release/address-model-32_64/architecture-combined/link-static
common.mkdir bin.v2/libs/system/build/darwin-4.0.1/release/address-model-32_64/architecture-combined/link-static/runtime-link-static
common.mkdir bin.v2/libs/system/build/darwin-4.0.1/release/address-model-32_64/architecture-combined/link-static/runtime-link-static/threading-multi
darwin.compile.c++ bin.v2/libs/system/build/darwin-4.0.1/release/address-model-32_64/architecture-combined/link-static/runtime-link-static/threading-multi/error_code.o
darwin.archive bin.v2/libs/system/build/darwin-4.0.1/release/address-model-32_64/architecture-combined/link-static/runtime-link-static/threading-multi/libboost_system-xgcc40-mt-s-1_39.a
common.copy stage/lib/libboost_system-xgcc40-mt-s-1_39.a
ln-UNIX stage/lib/libboost_system-xgcc40-mt-s.a
common.mkdir bin.v2/libs/system/build/darwin-4.0.1/debug
common.mkdir bin.v2/libs/system/build/darwin-4.0.1/debug/address-model-32_64
common.mkdir bin.v2/libs/system/build/darwin-4.0.1/debug/address-model-32_64/architecture-combined
common.mkdir bin.v2/libs/system/build/darwin-4.0.1/debug/address-model-32_64/architecture-combined/link-static
common.mkdir bin.v2/libs/system/build/darwin-4.0.1/debug/address-model-32_64/architecture-combined/link-static/runtime-link-static
darwin.compile.c++ bin.v2/libs/system/build/darwin-4.0.1/debug/address-model-32_64/architecture-combined/link-static/runtime-link-static/error_code.o
darwin.archive bin.v2/libs/system/build/darwin-4.0.1/debug/address-model-32_64/architecture-combined/link-static/runtime-link-static/libboost_system-xgcc40-sd-1_39.a
...updated 20 targets...

Universal Binaryになっているか確認

iMac:boost_1_39_0 kuru$ file stage/lib/libboost_system-xgcc40-mt-s-1_39.a
stage/lib/libboost_system-xgcc40-mt-s-1_39.a: Mach-O universal binary with 4 architectures
stage/lib/libboost_system-xgcc40-mt-s-1_39.a (for architecture i386):	current ar archive random library
stage/lib/libboost_system-xgcc40-mt-s-1_39.a (for architecture ppc):	current ar archive random library
stage/lib/libboost_system-xgcc40-mt-s-1_39.a (for architecture x86_64):	current ar archive random library
stage/lib/libboost_system-xgcc40-mt-s-1_39.a (for architecture ppc64):	current ar archive random library