C++, Mac OS X, Xcode 8 : Compile Boost : Set deployment target to OS X 10.11

后端 未结 1 1667
暗喜
暗喜 2021-01-23 23:03

I am trying to use Boost CPP library on Mac OS X 10.11.6. I downloaded the 1.62 version of Boost from official SourceForge repository. Extracted it and built is as per the docs

相关标签:
1条回答
  • 2021-01-23 23:32

    To target a minimum OSX version lower than your current OSX version you are building from you need to set the -mmacosx-version-min option. Hence, if you used toolset=darwin you would need to build as:

    b2 macosx-version-min=10.11 ...
    

    As that toolset has special handling of the OSX min version. Or, if you used toolset=clang you would need to build as:

    b2 cflags=-mmacosx-version-min=10.11 cxxflags=-mmacosx-version-min=10.11 mflags=-mmacosx-version-min=10.11 mmflags=-mmacosx-version-min=10.11 linkflags=-mmacosx-version-min=10.11 ...
    
    0 讨论(0)
提交回复
热议问题