summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2016-03-22 12:42:14 -0700
committerTodd Gamblin <tgamblin@llnl.gov>2016-03-22 12:42:14 -0700
commit4a15477783188a34f2b967ae5964637c986de255 (patch)
tree16904c1394f74c981dcfd4cdd0688d905f76f439 /var
parent8823a5ac1c0822125733ef96688c91a6fe0ea802 (diff)
parent7618dc504cb58e115a0a95b130bcfc485cd8341d (diff)
downloadspack-4a15477783188a34f2b967ae5964637c986de255.tar.gz
spack-4a15477783188a34f2b967ae5964637c986de255.tar.bz2
spack-4a15477783188a34f2b967ae5964637c986de255.tar.xz
spack-4a15477783188a34f2b967ae5964637c986de255.zip
Merge pull request #605 from davydden/hypre_osx
temporary fix Hypre for OSX by building static lib by default
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/hypre/package.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/hypre/package.py b/var/spack/repos/builtin/packages/hypre/package.py
index 242ee100d7..8d93d48d1f 100644
--- a/var/spack/repos/builtin/packages/hypre/package.py
+++ b/var/spack/repos/builtin/packages/hypre/package.py
@@ -1,5 +1,5 @@
from spack import *
-import os
+import os, sys
class Hypre(Package):
"""Hypre is a library of high performance preconditioners that
@@ -12,7 +12,8 @@ class Hypre(Package):
version('2.10.1', 'dc048c4cabb3cd549af72591474ad674')
version('2.10.0b', '768be38793a35bb5d055905b271f5b8e')
- variant('shared', default=True, description="Build shared library version (disables static library)")
+ # hypre does not know how to build shared libraries on Darwin
+ variant('shared', default=sys.platform!='darwin', description="Build shared library version (disables static library)")
depends_on("mpi")
depends_on("blas")