summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/mvapich2/package.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/mvapich2/package.py b/var/spack/repos/builtin/packages/mvapich2/package.py
index dac9b69c49..0e0ab26a22 100644
--- a/var/spack/repos/builtin/packages/mvapich2/package.py
+++ b/var/spack/repos/builtin/packages/mvapich2/package.py
@@ -199,6 +199,16 @@ class Mvapich2(AutotoolsPackage):
return opts
+ def flag_handler(self, name, flags):
+ if name == 'fflags':
+ # https://bugzilla.redhat.com/show_bug.cgi?id=1795817
+ if self.spec.satisfies('%gcc@10:'):
+ if flags is None:
+ flags = []
+ flags.append('-fallow-argument-mismatch')
+
+ return (flags, None, None)
+
def setup_build_environment(self, env):
# mvapich2 configure fails when F90 and F90FLAGS are set
env.unset('F90')