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

2016-08-14 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57740 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

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

2014-11-03 Thread mjbshaw at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57740 Michael changed: What|Removed |Added CC||mjbshaw at hotmail dot com --- Comment #12 fro

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

2014-10-13 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57740 --- Comment #11 from Jonathan Wakely --- Since r213922 pthread_create should get linked in, but apparently not pthread_join.

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

2013-06-27 Thread joseph at codesourcery dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57740 --- Comment #10 from joseph at codesourcery dot com --- On Thu, 27 Jun 2013, pinskia at gcc dot gnu.org wrote: > No it does not. Or rather there have not been an ABI change in libstdc++ > since > 3.4. If you compile with the oldest distro you

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

2013-06-27 Thread roland at gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57740 --- Comment #9 from roland at gnu dot org --- (In reply to Andrew Pinski from comment #8) > (In reply to roland from comment #7) > > -static-libstdc++ is important > > to avoid DSO dependencies specific to the GCC version, which varies across > > i

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

2013-06-27 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57740 --- Comment #8 from Andrew Pinski --- (In reply to roland from comment #7) > -static-libstdc++ is important > to avoid DSO dependencies specific to the GCC version, which varies across > installations in incompatible ways far more than libc/libpth

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

2013-06-27 Thread roland at gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57740 --- Comment #7 from roland at gnu dot org --- (In reply to Jakub Jelinek from comment #6) > Note also that libstdc++.a can be used together with libpthread.so or > libstdc++.so with libpthread.a (g++ -static-libstdc++ etc.). If libstdc++.a had str

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

2013-06-27 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57740 --- Comment #6 from Jakub Jelinek --- Note also that libstdc++.a can be used together with libpthread.so or libstdc++.so with libpthread.a (g++ -static-libstdc++ etc.).

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

2013-06-27 Thread roland at gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57740 --- Comment #5 from roland at gnu dot org --- So my draft fix actually breaks the dynamic case. For the unconditional calls, weak is right in the shared library but strong is right in the static library. But unlike normal libraries, libstdc++ goes

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

2013-06-27 Thread roland at gnu dot org
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 jus

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

2013-06-27 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57740 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #3 f

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

2013-06-27 Thread roland at gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57740 --- Comment #2 from roland at gnu dot org --- (In reply to Andrew Pinski from comment #1) > I think it is bad form to use static linking with pthreads. Nonsense. There is code specifically to ensure it works. The additions for C++11 thread interf

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

2013-06-27 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57740 --- Comment #1 from Andrew Pinski --- I think it is bad form to use static linking with pthreads.