[Bug libstdc++/57740] C++11 std::thread not usable with static linking
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Jun 27 21:51:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57740
--- Comment #8 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(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/libpthread versions).
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 support, it should work across
all distros just fine. Just C++11 support was not part of most older distros
because they came out before 2011 :).
More information about the Gcc-bugs
mailing list