Dynamic linking against libc++ on Linux was already supported, as is
dynamic and static linking against libstdc++. What was missing is being
able to statically link against libc++. This can be used by applications
that choose to use libc++ instead of libstdc++, but do not (or can not)
require the dynamic libraries of libc++(abi) to be installed.
Details
- Reviewers
dlj cfe-commits EricWF ldionne jansvoboda11
Diff Detail
Event Timeline
I'll add a test along the lines of "test/Driver/fuchsia.cpp" line 36, where it tests "-static-libstdc++".
For the short discussion we had on IRC: there currently is no real protection on mixing things like -stdlib=libc++ and -static-libstdc++ in the linker command-line, other than the linker complaining about missing symbols. I've been looking at the drivers, but I'm not sure in which Tool subclass to put the check.
@erikjv Are you still working on this? Or is a better alternative being pursued? IIUC, this functionality is still missing in trunk.
Is this going to continue?
And also if we use libunwind to handle EH, then it uses dladdr function which need link libdl.
Why does this say FIXME?