Added pgi support for superlu-dist package (#4343)
* Added pgi support for superlu-dist package * added self.compiler.pic_flag
This commit is contained in:
parent
794dc50995
commit
c7de8d0cdc
1 changed files with 5 additions and 2 deletions
|
@ -71,11 +71,14 @@ def install(self, spec, prefix):
|
||||||
'ARCHFLAGS = cr',
|
'ARCHFLAGS = cr',
|
||||||
'RANLIB = true',
|
'RANLIB = true',
|
||||||
'CC = {0}'.format(self.spec['mpi'].mpicc),
|
'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['parmetis'].headers.cpp_flags,
|
||||||
spec['metis'].headers.cpp_flags,
|
spec['metis'].headers.cpp_flags,
|
||||||
'-D_LONGINT' if '+int64' in spec else ''),
|
'-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),
|
'FORTRAN = {0}'.format(self.spec['mpi'].mpif77),
|
||||||
'F90FLAGS = -O2',
|
'F90FLAGS = -O2',
|
||||||
'LOADER = {0}'.format(self.spec['mpi'].mpif77),
|
'LOADER = {0}'.format(self.spec['mpi'].mpif77),
|
||||||
|
|
Loading…
Reference in a new issue