This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Using -lsupc++ together with -shared and -Wl,--no-undefined
- From: Jochen Dückminor <Dueckminor at secude dot com>
- To: <libstdc++ at gcc dot gnu dot org>
- Date: Wed, 28 May 2008 13:52:17 +0200
- Subject: Using -lsupc++ together with -shared and -Wl,--no-undefined
In my projects I normally use the linker option -Wl,--no-undefined to ensure that all used symbols are defined.
As I don't use the STL, I would like to use supc++ to reduce the system dependencies.
This works fine for executables, but if I try to link a shared library I get the following error message:
/usr/lib/gcc/i486-linux-gnu/4.1.2/libsupc++.a(eh_globals.o): In function `__gnu_internal::get_global()':
(.text._ZN14__gnu_internal10get_globalEv+0x17): undefined reference to `___tls_get_addr'
Is there a linker option which allows to ignore the undefined reference to ___tls_get_addr but to report any other undefined references?
Thanks,
Jochen