From 8b612d3568120bc5506c27b05cf3dc38cfd4eb83 Mon Sep 17 00:00:00 2001 From: Jon Rood Date: Fri, 2 Dec 2016 11:47:35 -0700 Subject: Updating SuperLU package to use pic_flag instead of -fPIC, and removing specific version for default install method. (#2456) --- var/spack/repos/builtin/packages/superlu/package.py | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'var') 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([ -- cgit v1.2.3-70-g09d2