diff options
author | Ben Cowan <benc@txcorp.com> | 2020-12-15 13:25:23 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-15 14:25:23 -0600 |
commit | c02625eb5393a98866c78b251364f5b595cae7ab (patch) | |
tree | 87223d93c0964d22e8335b7f001526189148edd1 | |
parent | b6089ac6911aa7a4ea7c32d7be1125e3533e1838 (diff) | |
download | spack-c02625eb5393a98866c78b251364f5b595cae7ab.tar.gz spack-c02625eb5393a98866c78b251364f5b595cae7ab.tar.bz2 spack-c02625eb5393a98866c78b251364f5b595cae7ab.tar.xz spack-c02625eb5393a98866c78b251364f5b595cae7ab.zip |
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.
-rw-r--r-- | var/spack/repos/builtin/packages/py-scipy/package.py | 8 |
1 files changed, 8 insertions, 0 deletions
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'): |