Skip to content
Snippets Groups Projects
Commit 64c3b114 authored by Elizabeth Fischer's avatar Elizabeth Fischer Committed by Todd Gamblin
Browse files

suitesparse: Added +fpic (for linking with shared libraries) (#1542)

parent 7ad6c356
Branches
Tags
No related merge requests found
...@@ -36,6 +36,7 @@ class SuiteSparse(Package): ...@@ -36,6 +36,7 @@ class SuiteSparse(Package):
version('4.5.1', 'f0ea9aad8d2d1ffec66a5b6bfeff5319') version('4.5.1', 'f0ea9aad8d2d1ffec66a5b6bfeff5319')
variant('tbb', default=True, description='Build with Intel TBB') variant('tbb', default=True, description='Build with Intel TBB')
variant('fpic', default=True, description='Build position independent code (required to link with shared libraries)')
depends_on('blas') depends_on('blas')
depends_on('lapack') depends_on('lapack')
...@@ -63,6 +64,8 @@ def install(self, spec, prefix): ...@@ -63,6 +64,8 @@ def install(self, spec, prefix):
'CXX=c++', 'CXX=c++',
'F77=f77', 'F77=f77',
]) ])
if '+fpic' in spec:
make_args.extend(['CFLAGS=-fPIC', 'FFLAGS=-fPIC'])
# use Spack's metis in CHOLMOD/Partition module, # use Spack's metis in CHOLMOD/Partition module,
# otherwise internal Metis will be compiled # otherwise internal Metis will be compiled
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment