http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57740
--- Comment #4 from roland at gnu dot org --- weakrefs are right for the conditional cases. For the functions that underlie std::thread et al, it can never be meaningful to use those interfaces and fail to link with -lpthread. The Fedora hack just masks bugs like this one. It's not the right thing to do at all. The right thing is to fix the bugs. I have a fix, demonstrating it's certainly not impossible.