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>
This commit is contained in:
lukebroskop 2021-05-11 18:01:49 -05:00 committed by GitHub
parent a011564b19
commit d549e3a600
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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'):