On Thu, Feb 6, 2014 at 12:27 PM, Tim Burgess <tim@raisedbar.net> wrote:
Hi,

Due to the requirements of another library I have to use, I need to build
Boost 1.55.0 on my Mac 10.8 system using the libstdc++ STL library, rather
then libc++. I've now got myself royally confused with the build
configuration process, as to where I specify toolsets and other options to
achieve what I need. I'm failing with:

Cd /users/tim/developer/libraries/boost_1_55_0
./b2 clean
sudo sh bootstrap.sh macosx-version=10.8 macosx-version-min=10.7
architecture=combined threading=multi link=static address-model=32_64
./b2 toolset=clang -std=c++11 cxxflags="-stdlib=libstdc++"
linkflags="-stdlib=libstdc++"

I don't actually need the c++11 support.

Can anybody advise, please?

Best wishes.
Tim Burgess


I noted how I built boost 1.54 with libstrc++ step-by-step. Hope that helps:


mkdir ~/boost-stdc++-install
cd ~/boost-stdc++-install
wget http://downloads.sourceforge.net/project/boost/boost/1.54.0/boost_1_54_0.tar.bz2
tar xfj boost_1_54_0.tar.bz2
cd boost_1_54_0
mkdir -p tmp/build
mkdir stage

cd tools/build/v2/
./bootstrap.sh
cd ~/boost-stdc++-install/boost_1_54_0
cd ~/boost-stdc++-install/boost_1_54_0
tools/build/v2/b2 \
--build-dir=`pwd`/tmp/build/ \
--stagedir=`pwd`/tmp/stage/ \
--buildid=libstdc++ \
--layout=tagged -j24 \
toolset=clang \
cxxflags="-ftemplate-depth=999 -stdlib=libstdc++" \
linkflags="-stdlib=libstdc++" \
define=BOOST_SYSTEM_NO_DEPRECATED stage



Best Regards,
Ovanes