summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2019-10-12 20:21:23 -0500
committerGitHub <noreply@github.com>2019-10-12 20:21:23 -0500
commit08d448bc54e92f587899fcb68f7ebeb975119797 (patch)
tree01392f73029e6917b1e7ebcdad94f10218579405
parent41e0b069d78c6a3012dfb10e47fa9852752b36cc (diff)
downloadspack-08d448bc54e92f587899fcb68f7ebeb975119797.tar.gz
spack-08d448bc54e92f587899fcb68f7ebeb975119797.tar.bz2
spack-08d448bc54e92f587899fcb68f7ebeb975119797.tar.xz
spack-08d448bc54e92f587899fcb68f7ebeb975119797.zip
mpfr: fix make check on catalina (#13200)
-rw-r--r--var/spack/repos/builtin/packages/mpfr/package.py7
1 files changed, 7 insertions, 0 deletions
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,