[Bug libstdc++/57740] C++11 std::thread not usable with static linking

roland at gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Jun 27 20:57:00 GMT 2013


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.



More information about the Gcc-bugs mailing list