py-pyfftw: add LDFLAGS to fix build error (#22745)

This commit is contained in:
darmac 2021-04-09 00:06:23 +08:00 committed by GitHub
parent 44d2444854
commit 8a0aec4c4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,3 +22,6 @@ class PyPyfftw(PythonPackage):
depends_on('py-cython@0.29:0.999', type='build')
depends_on('py-numpy@1.6:', type=('build', 'run'), when='@:0.10.4')
depends_on('py-numpy@1.10:1.999', type=('build', 'run'), when='@0.11.0:')
def setup_build_environment(self, env):
env.append_flags('LDFLAGS', self.spec['fftw'].libs.search_flags)