Hello,
I'd like to build the boost_serialization library with a compatibility setup
for Mac OS X version 10.7, because I need to use it with Anaconda Python
binaries, which are built for OS X 10.7. The OS X compatibility version can be
set either by passing `-mmacosx-version-min=10.7` as a compile and link option
or by setting environment variable MACOSX_DEPLOYMENT_TARGET=10.7.
If I do so, the boost_serialization library builds without complaints,
however I am not able to link it with my test program. Here are the steps
I take to compile boost_serialization and the test program starting from
a fresh boost 1.64.0 tree:
# --------------------------------------------------------------
$ export MACOSX_DEPLOYMENT_TARGET=10.7
$ ./bootstrap.sh
$ ./b2 -j4 variant=release link=shared --with-serialization stage
# The stage/lib directory now contains libboost_serialization.dylib.
# Use it to build a test program from tarchive.cpp:
$ c++ tarchive.cpp -I. -Lstage/lib -lboost_serialization
Undefined symbols for architecture x86_64:
"boost::archive::basic_binary_oprimitive