global variables within library __thread
Mike Frysinger
vapier@gentoo.org
Sat Oct 17 02:51:00 GMT 2015
On 17 Oct 2015 00:31, Joël Krähemann wrote:
> __thread AgsThread *ags_thread_self = NULL;
>
> /usr/bin/ld: ags_thread_self: TLS definition in
> /home/joelkraehemann/gsequencer/.libs/libags_thread.a(libags_thread_la-ags_thread-posix.o)
> section .tbss mismatches non-TLS reference in .libs/gsequencerS.o
make sure the header that declares this also has __thread markings.
declaring it in the header like this would be wrong:
extern AgsThread *ags_thread_self;
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://sourceware.org/pipermail/libc-help/attachments/20151017/ebc6ba18/attachment.sig>
More information about the Libc-help
mailing list