netcdf-fortran: Fix build with gcc@10: (#16573)
This commit is contained in:
parent
c220a22b69
commit
cd2e906702
@ -84,6 +84,11 @@ def flag_handler(self, name, flags):
|
||||
# building takes place outside of Spack environment, i.e.
|
||||
# without Spack's compiler wrappers.
|
||||
config_flags = [self.spec['netcdf-c'].libs.search_flags]
|
||||
elif name == 'fflags' and self.spec.satisfies('%gcc@10:'):
|
||||
# https://github.com/Unidata/netcdf-fortran/issues/212
|
||||
if config_flags is None:
|
||||
config_flags = []
|
||||
config_flags.append('-fallow-argument-mismatch')
|
||||
|
||||
return flags, None, config_flags
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user