netcdf-fortran: Fix build with gcc@10: (#16573)

This commit is contained in:
Michael Kuhn
2020-05-11 19:31:40 +02:00
committed by GitHub
parent c220a22b69
commit cd2e906702

View File

@@ -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