[llvm-bugs] [Bug 39274] New: The combination of -static-libstdc++ and -stdlib=libc++ links in both standard libraries
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Oct 12 17:36:42 PDT 2018
https://bugs.llvm.org/show_bug.cgi?id=39274
Bug ID: 39274
Summary: The combination of -static-libstdc++ and
-stdlib=libc++ links in both standard libraries
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: bmoses at google.com
CC: llvm-bugs at lists.llvm.org
The -static-libstdc++ option will blindly add a "-lstdc++" option, even if we
have -stdlib=libc++ and we're also getting a "-lc++" option from that. This of
course leads to all kinds of entertaining fun.
One could argue that these two options conflict with each other, but if true,
that should be a diagnosed error.
Also, there's no -static-libc++ equivalent to -static-libstdc++, so it would be
nice if the -static-libstdc++ were repurposed to mean "whatever C++ standard
library we're using, link it statically" and then land something like
https://reviews.llvm.org/D37726 that gives it an alias name that's more
appropriate for the non-libstdc++ case.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20181013/60452be6/attachment.html>
More information about the llvm-bugs
mailing list