CrayPE_binutils package fix for CCE (#30338)

This commit is contained in:
luker 2022-04-29 02:36:52 -05:00 committed by GitHub
parent c06f69d0bf
commit f40780310b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -169,6 +169,11 @@ def flag_handler(self, name, flags):
elif name == 'cflags':
if self.spec.satisfies('@:2.34 %gcc@10:'):
iflags.append('-fcommon')
if self.spec.satisfies('%cce'):
iflags.append('-fPIC -fcommon')
elif name == 'ldflags':
if self.spec.satisfies('%cce'):
iflags.append('-Wl,-z,notext')
return (iflags, None, flags)
def test(self):