Fix Zoltan installation with gcc 10.2.0 (#18301)

This commit is contained in:
Hector 2020-08-27 13:57:53 -05:00 committed by GitHub
parent 77a28b81ac
commit 9f5d0c0007
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -133,13 +133,16 @@ def configure_args(self):
'--with-mpi-libs= '
])
config_fcflags = config_cflags[:]
if spec.satisfies('%gcc@10:+fortran'):
config_fcflags.append('-fallow-argument-mismatch')
# NOTE: Early versions of Zoltan come packaged with a few embedded
# library packages (e.g. ParMETIS, Scotch), which messes with Spack's
# ability to descend directly into the package's source directory.
config_args.extend([
'--with-cflags={0}'.format(' '.join(config_cflags)),
'--with-cxxflags={0}'.format(' '.join(config_cflags)),
'--with-fcflags={0}'.format(' '.join(config_cflags))
'--with-fcflags={0}'.format(' '.join(config_fcflags))
])
return config_args