diff options
author | Jim Galarowicz <jeg@krellinst.org> | 2015-07-21 10:49:15 -0500 |
---|---|---|
committer | Jim Galarowicz <jeg@krellinst.org> | 2015-07-21 10:49:15 -0500 |
commit | 64c8fd3fa18dd6644a67cbd9e9aa5f20eb5e85a7 (patch) | |
tree | 8b633d37edcace16d38f6334eb45f3fc90d976fa /var | |
parent | 13421dc4aa8dd0705728660e5bf6dab657cc170e (diff) | |
download | spack-64c8fd3fa18dd6644a67cbd9e9aa5f20eb5e85a7.tar.gz spack-64c8fd3fa18dd6644a67cbd9e9aa5f20eb5e85a7.tar.bz2 spack-64c8fd3fa18dd6644a67cbd9e9aa5f20eb5e85a7.tar.xz spack-64c8fd3fa18dd6644a67cbd9e9aa5f20eb5e85a7.zip |
Add krelloptions variant that is used to turn on a configuration option to build the thread safe lightweight libraries.
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/packages/mrnet/package.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/var/spack/packages/mrnet/package.py b/var/spack/packages/mrnet/package.py index 6e9766f275..08c57d7436 100644 --- a/var/spack/packages/mrnet/package.py +++ b/var/spack/packages/mrnet/package.py @@ -8,12 +8,17 @@ class Mrnet(Package): version('4.0.0', 'd00301c078cba57ef68613be32ceea2f') version('4.1.0', '5a248298b395b329e2371bf25366115c') + variant('krelloptions', default=False, description="Also build the MRNet LW threadsafe libraries") parallel = False depends_on("boost") def install(self, spec, prefix): - configure("--prefix=%s" %prefix, "--enable-shared") + # Build the MRNet LW thread safe libraries when the krelloptions variant is present + if '+krelloptions' in spec: + configure("--prefix=%s" %prefix, "--enable-shared", "--enable-ltwt-threadsafe") + else: + configure("--prefix=%s" %prefix, "--enable-shared") make() make("install") |