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
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 ...