[llvm-dev] libc++ failed to link against musl
David Chisnall via llvm-dev
llvm-dev at lists.llvm.org
Wed Jun 7 03:32:01 PDT 2017
On 7 Jun 2017, at 10:49, Dmitry Golovin <dima at golovin.in> wrote:
> As far as I can understand, all the functions of libgcc are provided by compiler-rt and libunwind, so it is possible to build a toolchain that will not have any parts of GCC at all.
Correct, though on FreeBSD we still install the libunwind / compiler-rt combination as libgcc_s.so, because then we don’t break existing binaries or compilers.
> For now my toolchain can only produce statically liked binaries, I have some trouble with shared (https://bugs.llvm.org/show_bug.cgi?id=32425#c8), and it only works for C, the C++ test program segfaults.
You might find it informative to look at how the FreeBSD toolchain works.
More information about the llvm-dev