summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/mercury/package.py
diff options
context:
space:
mode:
Diffstat (limited to 'var/spack/repos/builtin/packages/mercury/package.py')
-rw-r--r--var/spack/repos/builtin/packages/mercury/package.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/mercury/package.py b/var/spack/repos/builtin/packages/mercury/package.py
index bf65358066..f9f7c0c6ac 100644
--- a/var/spack/repos/builtin/packages/mercury/package.py
+++ b/var/spack/repos/builtin/packages/mercury/package.py
@@ -59,6 +59,12 @@ class Mercury(CMakePackage):
# See https://github.com/mercury-hpc/mercury/issues/299
patch('fix-cmake-3.15-check_symbol_exists.patch', when='@1.0.0:1.0.1')
+ def flag_handler(self, name, flags):
+ if self.spec.satisfies('%cce'):
+ if name == 'ldflags':
+ flags.append('-Wl,-z,muldefs')
+ return (None, None, flags)
+
def cmake_args(self):
"""Populate cmake arguments for Mercury."""
spec = self.spec