$ echo 'int main(){return 0;}' >tmp.c && gcc -xc++ tmp.c /tmp/ccGESvie.o:(.eh_frame+0x12): undefined reference to `__gxx_personality_v0'
libstdc++'s configure missdetects in this way the -Wl,--gc-sections support in the linker. (...) configure:8405: checking for ld that supports -Wl,--gc-sections configure:8430: /home/users/pluto/rpm/BUILD/gcc-4.2.0-20070316/builddir/./gcc/xgcc -B/home/users/pluto/rpm/BUILD/gcc-4.2.0-20070316/builddir/./gcc/ -B/usr/x86_64-pld-linux/bin/ -B/usr/x86_64-pld-linux/lib/ -isystem /usr/x86_64-pld-linux/include -isystem /usr/x86_64-pld-linux/sys-include -o conftest -x c++ -Wl,--gc-sections -Wl,--as-needed conftest.c >&5 /tmp/ccobXMwl.o:(.eh_frame+0x12): undefined reference to `__gxx_personality_v0' collect2: ld returned 1 exit status configure:8436: $? = 1 -- Summary: -x c++ causes failures with c language sources. Product: gcc Version: 4.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: driver AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: pluto at agmk dot net http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31621