compile Boost as static Universal binary lib

前端 未结 3 1540
旧巷少年郎
旧巷少年郎 2020-12-30 16:31

I want to have a static Universal binary lib of Boost. (Preferable the latest stable version, that is 1.43.0, or newer.)

I found many Google hits with similar proble

3条回答
  •  余生分开走
    2020-12-30 17:05

    To build 4-way universal boost static binaries on OSX 10.6 I do the following:

    1. Download boost from the boost website.

    2. Extract the archive and cd into the boost_1_xx_0 folder (where xx is the version of boost you are using).

    3. Run:

      ./bootstrap.sh and then

      ./bjam macosx-version=10.6 macosx-version-min=10.4 architecture=combined threading=multi link=static address-model=32_64

    This will compile everything except for Boost.MPI (which requires the --with-mpi option). The build products get put in ./stage

提交回复
热议问题