diff options
author | Pitamila <pierreduperray@free.fr> | 2022-07-27 19:20:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-27 10:20:49 -0700 |
commit | 56ab4c9820f245a5c110625c612b17e9ed5a4aaa (patch) | |
tree | 9e576a74898ce6b1a6cd42ec4d7fc5c2ee8c6875 /var | |
parent | 02151565e919fc7c1d17a99924e729f897d5bce9 (diff) | |
download | spack-56ab4c9820f245a5c110625c612b17e9ed5a4aaa.tar.gz spack-56ab4c9820f245a5c110625c612b17e9ed5a4aaa.tar.bz2 spack-56ab4c9820f245a5c110625c612b17e9ed5a4aaa.tar.xz spack-56ab4c9820f245a5c110625c612b17e9ed5a4aaa.zip |
py-scipy: -fPIC appending trouble with gcc@10: (#31698)
`-fPIC` mandatory option squeezed by error, the
NPY_DISTUTILS_APPEND_FLAGS appears handy
Co-authored-by: duperrayp <duperrayp@u-un00s16835>
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/py-scipy/package.py | 2 |
1 files changed, 2 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 e08bbdc0c7..35ed555845 100644 --- a/var/spack/repos/builtin/packages/py-scipy/package.py +++ b/var/spack/repos/builtin/packages/py-scipy/package.py @@ -111,6 +111,8 @@ class PyScipy(PythonPackage): # https://github.com/scipy/scipy/issues/11611 if self.spec.satisfies('@:1.4 %gcc@10:'): env.set('FFLAGS', '-fallow-argument-mismatch') + if self.spec.satisfies('^py-numpy@1.16:1.17'): + env.set('NPY_DISTUTILS_APPEND_FLAGS', '1') # Pick up Blas/Lapack from numpy self.spec['py-numpy'].package.setup_build_environment(env) |