diff options
author | lukebroskop <luke.roskop@hpe.com> | 2021-05-11 18:01:49 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-11 16:01:49 -0700 |
commit | d549e3a60020b085af980cd2ce3a02cc3333ba72 (patch) | |
tree | 44d8416d8bf094a8249eb4582c77d9bde24ce3cf /var | |
parent | a011564b19263140c3b411d647091e47c36a5a08 (diff) | |
download | spack-d549e3a60020b085af980cd2ce3a02cc3333ba72.tar.gz spack-d549e3a60020b085af980cd2ce3a02cc3333ba72.tar.bz2 spack-d549e3a60020b085af980cd2ce3a02cc3333ba72.tar.xz spack-d549e3a60020b085af980cd2ce3a02cc3333ba72.zip |
CrayPE fix for kvtree (#23513)
Allow for multiple definitions at link time (with cce's linker)
Co-authored-by: Tamara Dahlgren <35777542+tldahlgren@users.noreply.github.com>
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/kvtree/package.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/kvtree/package.py b/var/spack/repos/builtin/packages/kvtree/package.py index 9fdb88d4bc..443f644acb 100644 --- a/var/spack/repos/builtin/packages/kvtree/package.py +++ b/var/spack/repos/builtin/packages/kvtree/package.py @@ -30,6 +30,12 @@ class Kvtree(CMakePackage): multi=False, description='File locking style for KVTree.') + def flag_handler(self, name, flags): + if self.spec.satisfies('%cce'): + if name == 'ldflags': + flags.append('-Wl,-z,muldefs') + return (flags, None, None) + def cmake_args(self): args = [] if self.spec.satisfies('+mpi'): |