[PATCH] D35780: Introduce -nostdlib++ flag to disable linking the C++ standard library.

Joerg Sonnenberger via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Jul 23 12:08:03 PDT 2017


joerg added a comment.

I don't really like this. The reason why -lm is added explicitly on many targets is because the C++ STL typically depends on it and that means for static linking and broken ELF linkers, it will be necessary to link against it explicitly.
There is also the question on whether any platform we have currently uses separate STL and ABI libraries and it is not clear whether the flag should handle both.


https://reviews.llvm.org/D35780





More information about the cfe-commits mailing list