From c02625eb5393a98866c78b251364f5b595cae7ab Mon Sep 17 00:00:00 2001 From: Ben Cowan Date: Tue, 15 Dec 2020 13:25:23 -0700 Subject: Kluge to get the gfortran linker to work correctly for SciPy on Big Sur. (#20367) * Kluge to get the gfortran linker to work correctly on Big Sur. * Fixed formatting error; stetting the other. * Removed spaces. * Added comment, mainly to re-trigger Spack CI. --- var/spack/repos/builtin/packages/py-scipy/package.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/var/spack/repos/builtin/packages/py-scipy/package.py b/var/spack/repos/builtin/packages/py-scipy/package.py index afeae0dd1c..7f6027c0e1 100644 --- a/var/spack/repos/builtin/packages/py-scipy/package.py +++ b/var/spack/repos/builtin/packages/py-scipy/package.py @@ -3,6 +3,8 @@ # # SPDX-License-Identifier: (Apache-2.0 OR MIT) +import platform + class PyScipy(PythonPackage): """SciPy (pronounced "Sigh Pie") is a Scientific Library for Python. @@ -85,6 +87,12 @@ class PyScipy(PythonPackage): if self.spec.satisfies('@:1.4 %gcc@10:'): env.set('FFLAGS', '-fallow-argument-mismatch') + # Kluge to get the gfortran linker to work correctly on Big + # Sur, at least until a gcc release > 10.2 is out with a fix. + # (There is a fix in their development tree.) + if platform.mac_ver()[0][0:2] == '11': + env.set('MACOSX_DEPLOYMENT_TARGET', '10.15') + def build_args(self, spec, prefix): args = [] if spec.satisfies('%fj'): -- cgit v1.2.3-70-g09d2