Build: Clang, libstdc++ and Mac 10.8
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
On Thu, Feb 6, 2014 at 12:27 PM, Tim Burgess
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... $ 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
On Thu, Feb 06, 2014 at 11:27:20AM -0000, Tim Burgess wrote:
./b2 toolset=clang -std=c++11 cxxflags="-stdlib=libstdc++" linkflags="-stdlib=libstdc++"
b2 doesn't to my knowledge have an -std=c++11 option, that would belong in the flags for the compiler driver, if at all. -- Lars Viklund | zao@acc.umu.se
On Feb 6, 2014, at 9:34 AM, Lars Viklund
On Thu, Feb 06, 2014 at 11:27:20AM -0000, Tim Burgess wrote:
./b2 toolset=clang -std=c++11 cxxflags="-stdlib=libstdc++" linkflags="-stdlib=libstdc++"
b2 doesn't to my knowledge have an -std=c++11 option, that would belong in the flags for the compiler driver, if at all.
Right. ./b2 toolset=clang cxxflags="-std=c++11 -stdlib=libstdc++” linkflags="-stdlib=libstdc++” — Marshall
Much appreciated - thanks.
Best wishes.
Tim Burgess
-----Original Message-----
From: Boost-users [mailto:boost-users-bounces@lists.boost.org] On Behalf Of
Marshall Clow
Sent: 06 February 2014 18:15
To: boost-users@lists.boost.org
Subject: Re: [Boost-users] Build: Clang, libstdc++ and Mac 10.8
On Feb 6, 2014, at 9:34 AM, Lars Viklund
On Thu, Feb 06, 2014 at 11:27:20AM -0000, Tim Burgess wrote:
./b2 toolset=clang -std=c++11 cxxflags="-stdlib=libstdc++" linkflags="-stdlib=libstdc++"
b2 doesn't to my knowledge have an -std=c++11 option, that would belong in the flags for the compiler driver, if at all.
Right. ./b2 toolset=clang cxxflags="-std=c++11 -stdlib=libstdc++" linkflags="-stdlib=libstdc++" - Marshall _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (4)
-
Lars Viklund
-
Marshall Clow
-
Ovanes Markarian
-
Tim Burgess