summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElizabeth F <rpf2116@columbia.edu>2016-04-27 20:35:29 -0400
committerElizabeth F <rpf2116@columbia.edu>2016-04-27 20:36:41 -0400
commit71ca837adad0e8c8149bdfd5be602ac7cc27c9a5 (patch)
treefb6ee380565ffa4eefa64c3f676ba6f4be314aa9
parentee6a75c9b5bb072ef852b2fae80e2dc1f3944d53 (diff)
downloadspack-71ca837adad0e8c8149bdfd5be602ac7cc27c9a5.tar.gz
spack-71ca837adad0e8c8149bdfd5be602ac7cc27c9a5.tar.bz2
spack-71ca837adad0e8c8149bdfd5be602ac7cc27c9a5.tar.xz
spack-71ca837adad0e8c8149bdfd5be602ac7cc27c9a5.zip
Add '+fpic' variant.
-rw-r--r--var/spack/repos/builtin/packages/openblas/package.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/openblas/package.py b/var/spack/repos/builtin/packages/openblas/package.py
index 52edd1a77a..f5d656f659 100644
--- a/var/spack/repos/builtin/packages/openblas/package.py
+++ b/var/spack/repos/builtin/packages/openblas/package.py
@@ -14,6 +14,7 @@ class Openblas(Package):
variant('shared', default=True, description="Build shared libraries as well as static libs.")
variant('openmp', default=True, description="Enable OpenMP support.")
+ variant('fpic', default=True, description="Build position independent code")
# virtual dependency
provides('blas')
@@ -33,6 +34,8 @@ class Openblas(Package):
if '+shared' in spec:
make_targets += ['shared']
else:
+ if '+fpic' in spec:
+ make_defs.extend(['CFLAGS=-fPIC', 'FFLAGS=-fPIC'])
make_defs += ['NO_SHARED=1']
# fix missing _dggsvd_ and _sggsvd_