ucx: use bfd instead of lld with %aocc (#26254)

This commit is contained in:
Carlos Bederián 2021-09-25 23:47:07 -03:00 committed by GitHub
parent 3c14d130ca
commit b4b3b256bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -90,6 +90,7 @@ class Ucx(AutotoolsPackage, CudaPackage):
msg='gdrcopy currently requires cuda support')
depends_on('xpmem', when='+xpmem')
depends_on('knem', when='+knem')
depends_on('binutils+ld', when='%aocc', type='build')
configure_abs_path = 'contrib/configure-release'
@ -145,4 +146,8 @@ def configure_args(self):
config_args.extend(self.with_or_without('xpmem',
activation_value='prefix'))
# lld doesn't support '-dynamic-list-data'
if '%aocc' in spec:
config_args.append('LDFLAGS=-fuse-ld=bfd')
return config_args