mpfr: fix make check on catalina (#13200)

This commit is contained in:
Adam J. Stewart 2019-10-12 20:21:23 -05:00 committed by GitHub
parent 41e0b069d7
commit 08d448bc54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,