summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorChristoph Junghans <christoph.junghans@gmail.com>2017-04-16 07:47:00 -0600
committerAdam J. Stewart <ajstewart426@gmail.com>2017-04-16 08:47:00 -0500
commita3378ccd3de5bf1e2a5c1ac3acfc4855def3440d (patch)
tree4f559d32248a382981a2a76a6bfd97bb19cef9a6 /var
parentfdc8f71a5c28f04387872761a94d01ce8a02e19e (diff)
downloadspack-a3378ccd3de5bf1e2a5c1ac3acfc4855def3440d.tar.gz
spack-a3378ccd3de5bf1e2a5c1ac3acfc4855def3440d.tar.bz2
spack-a3378ccd3de5bf1e2a5c1ac3acfc4855def3440d.tar.xz
spack-a3378ccd3de5bf1e2a5c1ac3acfc4855def3440d.zip
charm: add support for shared linking (#3859)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/charm/package.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/charm/package.py b/var/spack/repos/builtin/packages/charm/package.py
index 7072e37cd3..a12eb00445 100644
--- a/var/spack/repos/builtin/packages/charm/package.py
+++ b/var/spack/repos/builtin/packages/charm/package.py
@@ -73,9 +73,9 @@ class Charm(Package):
"Enable SMP parallelism (does not work with +multicore)"))
variant("tcp", default=False,
description="Use TCP as transport mechanism (requires +net)")
+ variant("shared", default=False, description="Enable shared link support")
# Note: We could add variants for AMPI, LIBS, bigemulator, msa, Tau
- # Note: We could support shared libraries
depends_on("mpi", when="+mpi")
depends_on("papi", when="+papi")
@@ -163,6 +163,8 @@ class Charm(Package):
"The +tcp variant requires "
"the +net communication mechanism")
options.append("tcp")
+ if "+shared" in spec:
+ options.append("--build-shared")
# Call "make" via the build script
# Note: This builds Charm++ in the "tmp" subdirectory of the