[cfe-dev] -static-libstdc++ & libc++abi

Mike Aizatsky via cfe-dev cfe-dev at lists.llvm.org
Thu Nov 17 16:20:15 PST 2016


Hello!

I've recently encountered a bug (https://llvm.org/bugs/show_bug.cgi?id=30919)
and I would like an advice on how to approach it.

It seems that right now libc++abi is not handled by Tools.cpp. Normal
linking works  because:

$ cat ~/out/llvm/default/lib/libc++.so
INPUT(libc++.so.1 -lc++abi)

And if I use -static-libstdc++ then c++abi is not automatically linked in
at all.

Is there a similar magic for .a files like for .so? Should Tools.cpp know
about lc++abi? Are there any alternatives?



-- 
Mike
Sent from phone
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20161118/6fabf40c/attachment.html>


More information about the cfe-dev mailing list