Fix Zoltan installation with gcc 10.2.0 (#18301)
This commit is contained in:
parent
77a28b81ac
commit
9f5d0c0007
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user