http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55781
Bug #: 55781
Summary: -shared-libgcc does not completely undo -static-libgcc
Classification: Unclassified
Product: gcc
Version: 4.6.3
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: driver
AssignedTo: [email protected]
ReportedBy: [email protected]
In the gold testsuite, I need to link with a shared libgcc, but the top-level
configure now passes in -static-libgcc to all $(COMPILE) and $(CXX_COMPILE)
actions. I tried to undo that by adding -shared-libgcc to the command line, but
it doesn't quite erase the effects of -static-libgcc.
Running gcc without either option gives me these link options:
.../collect2 ... -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc ...
Running gcc with both -static-libgcc and -shared-libgcc gives me this:
.../collect2 ... -lstdc++ -lm -lgcc -lgcc_eh -lc -lgcc -lgcc_eh ...
Reproduced with 4.7 as well.