libquo: add pic flags for PGI (#20528)
Enforce PIC for PGI ((https://github.com/lanl/libquo/issues/41))
This commit is contained in:
parent
0f6ddacc98
commit
39a5c75a83
@ -34,7 +34,11 @@ def autoreconf(self, spec, prefix):
|
||||
bash('./autogen')
|
||||
|
||||
def configure_args(self):
|
||||
return [
|
||||
config_args = [
|
||||
'CC={0}'.format(self.spec['mpi'].mpicc),
|
||||
'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
|
||||
|
Loading…
Reference in New Issue
Block a user