This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/54513] "undefined reference to `___tls_get_addr'" when linking .so with libstdc++.a
- From: "d.v.a at ngs dot ru" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 07 Sep 2012 08:58:39 +0000
- Subject: [Bug libstdc++/54513] "undefined reference to `___tls_get_addr'" when linking .so with libstdc++.a
- Auto-submitted: auto-generated
- References: <bug-54513-4@http.gcc.gnu.org/bugzilla/>
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