diff options
author | Jon Rood <jon.rood@nrel.gov> | 2016-12-02 11:47:35 -0700 |
---|---|---|
committer | becker33 <becker33@llnl.gov> | 2016-12-02 10:47:35 -0800 |
commit | 8b612d3568120bc5506c27b05cf3dc38cfd4eb83 (patch) | |
tree | b6741ab2c904554821c4e411c4adf241f5533f68 | |
parent | 946605a4c99f78b3311435948de0c60b98fb1ef1 (diff) | |
download | spack-8b612d3568120bc5506c27b05cf3dc38cfd4eb83.tar.gz spack-8b612d3568120bc5506c27b05cf3dc38cfd4eb83.tar.bz2 spack-8b612d3568120bc5506c27b05cf3dc38cfd4eb83.tar.xz spack-8b612d3568120bc5506c27b05cf3dc38cfd4eb83.zip |
Updating SuperLU package to use pic_flag instead of -fPIC, and removing specific version for default install method. (#2456)
-rw-r--r-- | var/spack/repos/builtin/packages/superlu/package.py | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/var/spack/repos/builtin/packages/superlu/package.py b/var/spack/repos/builtin/packages/superlu/package.py index 8e23a2a14e..829949e504 100644 --- a/var/spack/repos/builtin/packages/superlu/package.py +++ b/var/spack/repos/builtin/packages/superlu/package.py @@ -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 @@ class Superlu(Package): 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([ |