summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/bigdft-futile/package.py
diff options
context:
space:
mode:
Diffstat (limited to 'var/spack/repos/builtin/packages/bigdft-futile/package.py')
-rw-r--r--var/spack/repos/builtin/packages/bigdft-futile/package.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/bigdft-futile/package.py b/var/spack/repos/builtin/packages/bigdft-futile/package.py
index 3bce94cd52..3894c503de 100644
--- a/var/spack/repos/builtin/packages/bigdft-futile/package.py
+++ b/var/spack/repos/builtin/packages/bigdft-futile/package.py
@@ -24,6 +24,9 @@ class BigdftFutile(AutotoolsPackage, CudaPackage):
variant("mpi", default=True, description="Enable MPI support")
variant("openmp", default=True, description="Enable OpenMP support")
+ variant(
+ "shared", default=True, description="Build shared libraries"
+ ) # Not default in bigdft, but is typically the default expectation
depends_on("autoconf", type="build")
depends_on("automake", type="build")
@@ -59,6 +62,8 @@ class BigdftFutile(AutotoolsPackage, CudaPackage):
"--with-pyyaml-path=%s" % pyyaml,
"--prefix=%s" % prefix,
]
+ if spec.satisfies("+shared"):
+ args.append("--enable-dynamic-libraries")
if "+openmp" in spec:
args.append("--with-openmp")