summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/py-scipy/package.py8
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'):