summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorQuellynSnead <quellyn@lanl.gov>2020-12-28 04:57:03 -0700
committerGitHub <noreply@github.com>2020-12-28 12:57:03 +0100
commit39a5c75a83efcdcff169041e2e2f5be30dfbc7b4 (patch)
treeac711201c80abe15e143728e109ba23655fac907 /var
parent0f6ddacc98a4b1c4acb79c33185e2f5cf1c1d305 (diff)
downloadspack-39a5c75a83efcdcff169041e2e2f5be30dfbc7b4.tar.gz
spack-39a5c75a83efcdcff169041e2e2f5be30dfbc7b4.tar.bz2
spack-39a5c75a83efcdcff169041e2e2f5be30dfbc7b4.tar.xz
spack-39a5c75a83efcdcff169041e2e2f5be30dfbc7b4.zip
libquo: add pic flags for PGI (#20528)
Enforce PIC for PGI ((https://github.com/lanl/libquo/issues/41))
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/libquo/package.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/libquo/package.py b/var/spack/repos/builtin/packages/libquo/package.py
index 808eb4e0fe..2b0339c87a 100644
--- a/var/spack/repos/builtin/packages/libquo/package.py
+++ b/var/spack/repos/builtin/packages/libquo/package.py
@@ -34,7 +34,11 @@ class Libquo(AutotoolsPackage):
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