I found out how to do it. Thanks to @Howard Hinnant for his mentioning of libc++abi
. After RTFM http://libcxx.llvm.org/, it's trivial to build the entire boost libraries free of any libstdc++
dependencies. Yes, all I had to do is to RTFM!
Remove Boost libstdc++ dependency with clang++/libc++?
Question
The answer to this question How to compile/link Boost with clang++/libc++? states to build Boost
with clang++
and libc++
, the following should do:
./b2 clean
./b2 toolset=clang cxxflags="-stdlib=libc++" linkflags="-stdlib=libc++"
I tested the above tip on a Scientific Linux 6.4 x86_64 host and it works "mostly" building the full Boost 1_53_0 distribution, with clang++ 3.3sv
and libc++ 3.3svn
. I said mostly, as I really like to remove all libstdc++
dependency.
Nevertheless, the following:
libboost_graph
libboost_locale
libboost_regex
still shows libstdc++
dependencies (the ldd
output makes it quite obvious). I would like to know a good way to remove such and would appreciate any hint.
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow