Closed BiteTheDDDDt closed 2 years ago
Yes, the limitation is already noted in README https://github.com/amosbird/ldb_toolchain_gen#how-to-avoid-glibc-incompatibility
However, it's indeed possible to improve. I'll investigate.
Starting from v0.8 ldb_toolchain provides builtin glibc-compatibility. Please try if it suits your need. BTW, it doesn't mask standard c++ libraries, so you might need to link them (libstdc++ or libc++) statically.
Now ldb_toolchain (>= v0.8.1) contains a bunch of useful libraries by default: libz, libtinfo, openssl etc. Ideally all these packages along with libstdc++ will be forced to link statically. However in Ubuntu distro most static libraries are compiled without -fPIC, which means we have to rebuild on our own. For now I'll leave it open as the toolchain is good enough.
More system headers are included. I've tested compiling Python3.6, LLVM-13 along with include-what-you-use on minimal centos 6. It works perfectly.
I tried compiling some other projects(LLVM13/clang-tidy/include-what-you-use) with it and found that it always fails at the initial test phase. why is this?