From 1a82ed6a254c61f1bb73502aeafeb52d3aee046f Mon Sep 17 00:00:00 2001 From: Nicholas Clark Date: Tue, 22 Jun 2021 13:59:19 +0000 Subject: cygwin can't support C11 thread local in shared objects, so disable it. This seems to be an unresolved bug in binutils, rather than any fundamental object format problem. --- hints/cygwin.sh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'hints') diff --git a/hints/cygwin.sh b/hints/cygwin.sh index 20e0e58821..40edf5f6b1 100644 --- a/hints/cygwin.sh +++ b/hints/cygwin.sh @@ -80,3 +80,9 @@ lddlflags="$lddlflags $ldflags" #ldflags="$ldflags -s" #ccdlflags="$ccdlflags -s" #lddlflags="$lddlflags -s" + +# Seems that exporting _Thread_local doesn't work on cygwin. This 6 year old +# gcc bug suggests that maybe the problem really is binutils, but either way +# it still doesn't work, despite our probes looking good: +# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64697 +d_thread_local=undef -- cgit v1.2.1