zoltan: Add PGI runtime libs to LDFLAGS (#20547)

* Add PGI runtime libs to LDFLAGS when '%pgi' in spec.

* Revert "Add PGI runtime libs to LDFLAGS when '%pgi' in spec."

This reverts commit 31c3ef8ea22156fdeef6f82a29e9cea8ac86f006.

* Add PGI runtime libs to LDFLAGS when '%pgi' in spec.
This commit is contained in:
QuellynSnead 2020-12-24 21:32:58 -07:00 committed by GitHub
parent 5add3a2f4d
commit e9f0473e26
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -90,6 +90,10 @@ def configure_args(self):
'-g' if '+debug' in spec else '',
]
config_ldflags = []
# PGI runtime libraries
if '%pgi' in spec:
config_ldflags.append('-pgf90libs')
if '+shared' in spec:
config_args.extend([
'RANLIB=echo',
@ -142,7 +146,8 @@ def configure_args(self):
config_args.extend([
'--with-cflags={0}'.format(' '.join(config_cflags)),
'--with-cxxflags={0}'.format(' '.join(config_cflags)),
'--with-fcflags={0}'.format(' '.join(config_fcflags))
'--with-fcflags={0}'.format(' '.join(config_fcflags)),
'--with-ldflags={0}'.format(' '.join(config_ldflags))
])
return config_args