CrayPE fixes for the slepc package (#23503)

Use the gold linker for CCE (this may change later)

Co-authored-by: Tamara Dahlgren <35777542+tldahlgren@users.noreply.github.com>
This commit is contained in:
lukebroskop 2021-05-17 11:30:58 -05:00 committed by GitHub
parent e34d996944
commit 46e0869631
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -95,8 +95,12 @@ def install(self, spec, prefix):
# its symlink in spack/stage/ !
os.environ['SLEPC_DIR'] = os.getcwd()
options = []
if self.spec.satisfies('%cce'):
filter_file(' flags = l',
' flags = l\n flags += ["-fuse-ld=gold"]',
'config/package.py')
options = []
if '+arpack' in spec:
options.extend([
'--with-arpack-dir=%s' % spec['arpack-ng'].prefix,