diff options
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/superlu-dist/package.py | 7 |
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), |