arpack-ng: fix build with gcc@10: (#17131)

This commit is contained in:
lorddavidiii 2020-06-18 14:43:52 +02:00 committed by GitHub
parent 2a13bad8eb
commit 68c13d76f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -85,6 +85,12 @@ def libs(self):
libraries, root=self.prefix, shared=True, recursive=True libraries, root=self.prefix, shared=True, recursive=True
) )
@when('@:3.7.0 %gcc@10:')
def setup_build_environment(self, env):
# version up to and including 3.7.0 are not ported to gcc 10
# https://github.com/opencollab/arpack-ng/issues/242
env.set('FFLAGS', '-fallow-argument-mismatch')
@when('@3.4.0:') @when('@3.4.0:')
def install(self, spec, prefix): def install(self, spec, prefix):