summaryrefslogtreecommitdiff
path: root/hints
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2021-06-22 13:59:19 +0000
committerTony Cook <tony@develop-help.com>2021-09-07 15:46:16 +1000
commit1a82ed6a254c61f1bb73502aeafeb52d3aee046f (patch)
tree8ca45a8554bb6df936a5e5a91af84b87412a00f5 /hints
parentb1015292fcc64eae2ffdfbaffbfb27d5f4303369 (diff)
downloadperl-1a82ed6a254c61f1bb73502aeafeb52d3aee046f.tar.gz
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.
Diffstat (limited to 'hints')
-rw-r--r--hints/cygwin.sh6
1 files changed, 6 insertions, 0 deletions
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