summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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