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: unassignedclangb...@nondot.org
Reporter: bmo...@google.com
CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs