From 60d7b0c35a9ad56344c7ba986620633d78bdba6c Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Thu, 11 May 2023 06:39:44 -0600 Subject: hints/darwin.sh: Turn off POSIX 2008 locales This is failing on smokes: http://nntp.perl.org/group/perl.perl5.porters/266341 What I've noticed in working with changes to the locale handling code (that isn't ready for v5.38) is that querylocale() has intermittent failures, that aren't fully solved by using a mutex, and that versions of Darwin earlier than major 20 have other problems with the POSIX 2008 API. These may be solved in Darwin 20 after disabling querylocale(), but the failure rate was so infrequent that I'm unsure if it has been fixed or just hasn't come up. So it is safest to just disable POSIX 2008 in Darwin for 5.38. --- hints/darwin.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hints/darwin.sh b/hints/darwin.sh index 97a3ec59a9..72bdfb6a13 100644 --- a/hints/darwin.sh +++ b/hints/darwin.sh @@ -357,6 +357,9 @@ EOM esac fi + # The OS is buggy with respect to this. + ccflags="$ccflags -DNO_POSIX_2008_LOCALE" + lddlflags="${ldflags} -bundle -undefined dynamic_lookup" ;; esac -- cgit v1.2.1