This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]