https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81107
--- Comment #1 from Thomas Anderson ---
Clang solved this recently by adding a -fvisibility-global-new-delete-hidden
option:
https://reviews.llvm.org/D53787
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83931
--- Comment #2 from Thomas Anderson ---
From the LLVM CL description:
Alternatively, they could use clang instead
of clang++, but that already disables implicit addition of -lm on some
toolchains.
Not sure if this is the same for gcc though.
: unassigned at gcc dot gnu.org
Reporter: thomasanderson at google dot com
Target Milestone: ---
Projects that want to link their own c++ standard library must currently pass
-nostdlib or -nodefaultlibs. This means projects must add back -lm, -lc and so
on. -nostdlib++ should be added
++
Assignee: unassigned at gcc dot gnu.org
Reporter: thomasanderson at google dot com
Target Milestone: ---
Created attachment 41695
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41695&action=edit
Preprocessed test.cpp
Compile test.cpp below using libc++
onent: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: thomasanderson at google dot com
Target Milestone: ---
Created attachment 41559
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41559&action=edit
test.cpp
Compile the attached test.cpp with
$ g++ -fvisib