diff --git a/libtcc.c b/libtcc.c index e0a10435..4250933a 100644 --- a/libtcc.c +++ b/libtcc.c @@ -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);