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:
parent
02151565e9
commit
56ab4c9820
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue