diff options
author | lukebroskop <luke.roskop@hpe.com> | 2021-05-11 18:00:34 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-11 16:00:34 -0700 |
commit | a011564b19263140c3b411d647091e47c36a5a08 (patch) | |
tree | 0f55b1a71567425ae3a69dc107ce1217f97f7d83 | |
parent | d089409079f5c19d458ffc7797ca11312112ab65 (diff) | |
download | spack-a011564b19263140c3b411d647091e47c36a5a08.tar.gz spack-a011564b19263140c3b411d647091e47c36a5a08.tar.bz2 spack-a011564b19263140c3b411d647091e47c36a5a08.tar.xz spack-a011564b19263140c3b411d647091e47c36a5a08.zip |
CrayPE fix for mercury (#23514)
allow for multiple definitions at link time (for CCE's linker)
Co-authored-by: Tamara Dahlgren <35777542+tldahlgren@users.noreply.github.com>
-rw-r--r-- | var/spack/repos/builtin/packages/mercury/package.py | 6 |
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 |