Updating SuperLU package to use pic_flag instead of -fPIC, and removing specific version for default install method. (#2456)
This commit is contained in:
parent
946605a4c9
commit
8b612d3568
@ -45,7 +45,6 @@ class Superlu(Package):
|
||||
depends_on('blas')
|
||||
|
||||
# CMake installation method
|
||||
@when('@5.2.1:')
|
||||
def install(self, spec, prefix):
|
||||
cmake_args = [
|
||||
'-Denable_blaslib=OFF',
|
||||
@ -93,14 +92,10 @@ def install(self, spec, prefix):
|
||||
if '+fpic' in spec:
|
||||
config.extend([
|
||||
# Use these lines instead when pic_flag capability arrives
|
||||
# 'CFLAGS = -O3 {0}'.format(self.compiler.pic_flag),
|
||||
# 'NOOPTS = {0}'.format(self.compiler.pic_flag),
|
||||
# 'FFLAGS = -O2 {0}'.format(self.compiler.pic_flag),
|
||||
# 'LOADOPTS = {0}'.format(self.compiler.pic_flag)
|
||||
'CFLAGS = -O3 -fPIC',
|
||||
'NOOPTS = -fPIC',
|
||||
'FFLAGS = -O2 -fPIC',
|
||||
'LOADOPTS = -fPIC'
|
||||
'CFLAGS = -O3 {0}'.format(self.compiler.pic_flag),
|
||||
'NOOPTS = {0}'.format(self.compiler.pic_flag),
|
||||
'FFLAGS = -O2 {0}'.format(self.compiler.pic_flag),
|
||||
'LOADOPTS = {0}'.format(self.compiler.pic_flag)
|
||||
])
|
||||
else:
|
||||
config.extend([
|
||||
|
Loading…
Reference in New Issue
Block a user