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

View File

@ -59,6 +59,12 @@ class Mercury(CMakePackage):
# See https://github.com/mercury-hpc/mercury/issues/299 # 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') 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): def cmake_args(self):
"""Populate cmake arguments for Mercury.""" """Populate cmake arguments for Mercury."""
spec = self.spec spec = self.spec