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>
This commit is contained in:
Pitamila 2022-07-27 19:20:49 +02:00 committed by GitHub
parent 02151565e9
commit 56ab4c9820
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -111,6 +111,8 @@ def setup_build_environment(self, env):
# 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)