From 08d448bc54e92f587899fcb68f7ebeb975119797 Mon Sep 17 00:00:00 2001 From: "Adam J. Stewart" Date: Sat, 12 Oct 2019 20:21:23 -0500 Subject: mpfr: fix make check on catalina (#13200) --- var/spack/repos/builtin/packages/mpfr/package.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/var/spack/repos/builtin/packages/mpfr/package.py b/var/spack/repos/builtin/packages/mpfr/package.py index 97436ccaf1..97d0f090b2 100644 --- a/var/spack/repos/builtin/packages/mpfr/package.py +++ b/var/spack/repos/builtin/packages/mpfr/package.py @@ -42,6 +42,13 @@ class Mpfr(AutotoolsPackage): patch('https://www.mpfr.org/mpfr-{0}/allpatches'.format(ver), when='@' + ver, sha256=checksum) + def flag_handler(self, name, flags): + # Work around macOS Catalina / Xcode 11 code generation bug + # (test failure t-toom53, due to wrong code in mpn/toom53_mul.o) + if self.spec.satisfies('os=catalina') and name == 'cflags': + flags.append('-fno-stack-check') + return (flags, None, None) + def configure_args(self): args = [ '--with-gmp=' + self.spec['gmp'].prefix, -- cgit v1.2.3-70-g09d2