summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authoreklee15 <eunkyung.lee@us.ibm.com>2017-05-25 17:23:26 -0400
committerAdam J. Stewart <ajstewart426@gmail.com>2017-05-25 16:23:26 -0500
commitc7de8d0cdcffe74163b8849c9ec4408af429a789 (patch)
tree26851b744710994c7b1d565c829d2c7df37496c9 /var
parent794dc5099567b075237a12474eedfdd5ffaa357b (diff)
downloadspack-c7de8d0cdcffe74163b8849c9ec4408af429a789.tar.gz
spack-c7de8d0cdcffe74163b8849c9ec4408af429a789.tar.bz2
spack-c7de8d0cdcffe74163b8849c9ec4408af429a789.tar.xz
spack-c7de8d0cdcffe74163b8849c9ec4408af429a789.zip
Added pgi support for superlu-dist package (#4343)
* Added pgi support for superlu-dist package * added self.compiler.pic_flag
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/superlu-dist/package.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/superlu-dist/package.py b/var/spack/repos/builtin/packages/superlu-dist/package.py
index e7d7b1587d..546a35b6af 100644
--- a/var/spack/repos/builtin/packages/superlu-dist/package.py
+++ b/var/spack/repos/builtin/packages/superlu-dist/package.py
@@ -71,11 +71,14 @@ class SuperluDist(Package):
'ARCHFLAGS = cr',
'RANLIB = true',
'CC = {0}'.format(self.spec['mpi'].mpicc),
- 'CFLAGS = -fPIC -std=c99 -O2 %s %s %s' % (
+ 'CFLAGS = %s %s -O2 %s %s %s' % (
+ self.compiler.pic_flag,
+ '' if '%pgi' in spec else '-std=c99',
spec['parmetis'].headers.cpp_flags,
spec['metis'].headers.cpp_flags,
'-D_LONGINT' if '+int64' in spec else ''),
- 'NOOPTS = -fPIC -std=c99',
+ 'NOOPTS = %s -std=c99' % (
+ self.compiler.pic_flag),
'FORTRAN = {0}'.format(self.spec['mpi'].mpif77),
'F90FLAGS = -O2',
'LOADER = {0}'.format(self.spec['mpi'].mpif77),