In perl.git, the branch blead has been updated <https://perl5.git.perl.org/perl.git/commitdiff/1a833e446496ec3cd2bd9d09aac54be5a3bb680d?hp=dafe9eeb9e0b74c1fc0c4e480d8e9c452c2db1ba>
- Log ----------------------------------------------------------------- commit 1a833e446496ec3cd2bd9d09aac54be5a3bb680d Author: Craig A. Berry <[email protected]> Date: Fri May 3 16:45:41 2019 -0500 Hide clock_gettime() from macOS 10.12+ for pre-10.12. When building on current Darwin but deploying to macOS 10.11.x or earlier, we need to convince Time::HiRes to use its override of clock_gettime() rather than the system-supplied one. Addresses [perl #128972]. ----------------------------------------------------------------------- Summary of changes: hints/darwin.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/hints/darwin.sh b/hints/darwin.sh index feb15f6b4f..0a91bc083c 100644 --- a/hints/darwin.sh +++ b/hints/darwin.sh @@ -348,6 +348,14 @@ EOM # macOS (10.12) deprecated syscall(). if [ "$prodvers_minor" -ge 12 ]; then d_syscall='undef' + # If deploying to pre-10.12, suppress Time::HiRes's detection of the system clock_gettime() + case "$MACOSX_DEPLOYMENT_TARGET" in + 10.[6-9]|10.10|10.11) + ccflags="$ccflags -Werror=partial-availability -D_DARWIN_FEATURE_CLOCK_GETTIME=0" + ;; + *) + ;; + esac fi lddlflags="${ldflags} -bundle -undefined dynamic_lookup" -- Perl5 Master Repository
