http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58909
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> --- If this is NPTL, then the fix is to either avoid using -static (lots of reasons not to do it), or -Wl,--whole-archive -lpthread -Wl,--no-whole-archive instead of -lpthread (in some distributions like Fedora the latter is unnecessary, as -lpthread contains a single large *.o file for these reasons).