I was trying to build the latest code in llvm-toolchain to get a relatively standalone toolchain, but ran into a problem with libc++. While libc++.so.1 is built correctly for the host (i.e. out/install/linux-x86/clang-dev/lib64/libc++.so.1), only stubs are generated under the sysroot directories, which cannot actually be used for linking C++ programs that use the STL. Judging by the comment inside toolchain/llvm_android/do_build.py, it seems that libc++ is not built since NDK r15 because strtod_l is missing (
http://b/64037266).
What is the correct way to build libc++ for arm and aarch64 sysroots?
Bryan