|
From: Tom H. <th...@cy...> - 2004-02-15 09:31:20
|
In message <402...@ac...>
js...@ac... wrote:
> if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -Winline -Wall -Wshadow -g -I../../include -MT tls2.o -MD -MP -MF ".deps/tls2.Tpo" \
> -c -o tls2.o `test -f 'tls2.c' || echo './'`tls2.c; \
> then mv -f ".deps/tls2.Tpo" ".deps/tls2.Po"; \
> else rm -f ".deps/tls2.Tpo"; exit 1; \
> fi
> gcc -Winline -Wall -Wshadow -g -I../../include -o tls -Wl,-rpath,. tls.o tls2.o tls.so -lpthread
> tls.so: undefined reference to `___tls_get_addr'
You've got a gcc that understands __thread but your glibc doesn't
support thread local storage. That test that is one that Jeremy added
recently but it will only work on systems with TLS support in both
the compiler and the C library.
Tom
--
Tom Hughes (th...@cy...)
Software Engineer, Cyberscience Corporation
http://www.cyberscience.com/
|