No 'Thread Storage Local' on FreeBSD with tcc.

This commit is contained in:
Christian Jullien 2016-10-15 18:47:31 +02:00
parent f7bfa0970e
commit 06db384f8a

View File

@ -847,6 +847,8 @@ LIBTCCAPI TCCState *tcc_new(void)
# endif
# if defined(__FreeBSD__)
tcc_define_symbol(s, "__FreeBSD__", "__FreeBSD__");
/* No 'Thread Storage Local' on FreeBSD with tcc */
tcc_define_symbol(s, "__NO_TLS", NULL);
# endif
# if defined(__FreeBSD_kernel__)
tcc_define_symbol(s, "__FreeBSD_kernel__", NULL);