libquo: add pic flags for PGI (#20528)

Enforce PIC for PGI ((https://github.com/lanl/libquo/issues/41))
This commit is contained in:
QuellynSnead 2020-12-28 04:57:03 -07:00 committed by GitHub
parent 0f6ddacc98
commit 39a5c75a83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,7 +34,11 @@ def autoreconf(self, spec, prefix):
bash('./autogen') bash('./autogen')
def configure_args(self): def configure_args(self):
return [ config_args = [
'CC={0}'.format(self.spec['mpi'].mpicc), 'CC={0}'.format(self.spec['mpi'].mpicc),
'FC={0}'.format(self.spec['mpi'].mpifc) 'FC={0}'.format(self.spec['mpi'].mpifc)
] ]
if '%pgi' in self.spec:
config_args.append('CFLAGS={0}'.format(self.compiler.cc_pic_flag))
config_args.append('FCFLAGS={0}'.format(self.compiler.fc_pic_flag))
return config_args