diff options
author | QuellynSnead <quellyn@lanl.gov> | 2020-12-28 04:57:03 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-28 12:57:03 +0100 |
commit | 39a5c75a83efcdcff169041e2e2f5be30dfbc7b4 (patch) | |
tree | ac711201c80abe15e143728e109ba23655fac907 | |
parent | 0f6ddacc98a4b1c4acb79c33185e2f5cf1c1d305 (diff) | |
download | spack-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))
-rw-r--r-- | var/spack/repos/builtin/packages/libquo/package.py | 6 |
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 |