summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/netcdf-fortran/package.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/netcdf-fortran/package.py b/var/spack/repos/builtin/packages/netcdf-fortran/package.py
index e4dd1ea884..f4bfe9a979 100644
--- a/var/spack/repos/builtin/packages/netcdf-fortran/package.py
+++ b/var/spack/repos/builtin/packages/netcdf-fortran/package.py
@@ -84,6 +84,11 @@ class NetcdfFortran(AutotoolsPackage):
# 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