[Bug libstdc++/54513] "undefined reference to `___tls_get_addr'" when linking .so with libstdc++.a

d.v.a at ngs dot ru gcc-bugzilla@gcc.gnu.org
Fri Sep 7 08:58:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54513

--- Comment #3 from __vic <d.v.a at ngs dot ru> 2012-09-07 08:58:39 UTC ---
$ g++ -shared -static-libstdc++ -static-libgcc -Wl,-s -Wl,--no-undefined 1.cpp
/lib/ld-linux.so.2

works fine. Thanks



More information about the Gcc-bugs mailing list