summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorElizabeth Fischer <rpf2116@columbia.edu>2016-09-22 14:03:49 -0400
committerTodd Gamblin <tgamblin@llnl.gov>2016-09-22 11:03:49 -0700
commit64c3b11478e02a5fa1eb9b60c09d514245181275 (patch)
tree4c668d9a568878b3e42af0ad73be88b1d264176b /var
parent7ad6c35627128b3f70334e0c698954b7bc691698 (diff)
downloadspack-64c3b11478e02a5fa1eb9b60c09d514245181275.tar.gz
spack-64c3b11478e02a5fa1eb9b60c09d514245181275.tar.bz2
spack-64c3b11478e02a5fa1eb9b60c09d514245181275.tar.xz
spack-64c3b11478e02a5fa1eb9b60c09d514245181275.zip
suitesparse: Added +fpic (for linking with shared libraries) (#1542)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/suite-sparse/package.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/suite-sparse/package.py b/var/spack/repos/builtin/packages/suite-sparse/package.py
index 22f069885d..d6d8f71313 100644
--- a/var/spack/repos/builtin/packages/suite-sparse/package.py
+++ b/var/spack/repos/builtin/packages/suite-sparse/package.py
@@ -36,6 +36,7 @@ class SuiteSparse(Package):
version('4.5.1', 'f0ea9aad8d2d1ffec66a5b6bfeff5319')
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('lapack')
@@ -63,6 +64,8 @@ class SuiteSparse(Package):
'CXX=c++',
'F77=f77',
])
+ if '+fpic' in spec:
+ make_args.extend(['CFLAGS=-fPIC', 'FFLAGS=-fPIC'])
# use Spack's metis in CHOLMOD/Partition module,
# otherwise internal Metis will be compiled