summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/graph500/package.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/graph500/package.py b/var/spack/repos/builtin/packages/graph500/package.py
index c423bb722d..aa9e90126e 100644
--- a/var/spack/repos/builtin/packages/graph500/package.py
+++ b/var/spack/repos/builtin/packages/graph500/package.py
@@ -18,6 +18,15 @@ class Graph500(MakefilePackage):
build_directory = 'src'
+ def flag_handler(self, name, flags):
+ wrapper_flags = None
+
+ if name == 'cflags':
+ if self.spec.satisfies('%gcc@10:'):
+ wrapper_flags = ['-fcommon']
+
+ return (wrapper_flags, None, flags)
+
def edit(self, spec, prefix):
makefile = FileFilter(join_path(self.build_directory, 'Makefile'))
makefile.filter(r'^MPICC\s*=.*', 'MPICC={0}'.format(spec['mpi'].mpicc))