Remove boost libstdc ++ dependencies using clang ++ / libc ++?

The answer to this question. How to compile / link Boost with clang ++ / lib ++? claims that to build Boost with clang++ and libc++ following should be done:

 ./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" by creating the full Boost 1_53_0 distribution with clang++ 3.3sv and libc++ 3.3svn . I said mostly, since I really like to remove all libstdc++ dependencies.

However, the following:

  • libboost_graph
  • libboost_locale
  • libboost_regex

still showing libstdc++ dependencies ( ldd output makes this very obvious). I would like to know a good way to remove such and would appreciate any hint.

+7
source share
1 answer

I learned how to do it. Thanks to @Howard Hinnant for mentioning libc++abi . After RTFM http://libcxx.llvm.org/ , it is trivial to build all boost libraries without any libstdc++ dependencies. Yes, all I had to do was RTFM!

-3
source

All Articles