summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/rdma-core/package.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/rdma-core/package.py b/var/spack/repos/builtin/packages/rdma-core/package.py
index b78054ad13..875471d02c 100644
--- a/var/spack/repos/builtin/packages/rdma-core/package.py
+++ b/var/spack/repos/builtin/packages/rdma-core/package.py
@@ -56,6 +56,12 @@ class RdmaCore(CMakePackage):
version("17.1", sha256="b47444b7c05d3906deb8771eec3e634984dd83f5e620d5e37d3a83f74f0cc1ba")
version("13", sha256="e5230fd7cda610753ad1252b40a28b1e9cf836423a10d8c2525b081527760d97")
+ variant(
+ "static",
+ default=True,
+ description="Produce static libraries along with usual shared libraries.",
+ )
+
depends_on("pkgconfig", type="build")
depends_on("py-docutils", type="build")
depends_on("libnl")
@@ -82,6 +88,8 @@ class RdmaCore(CMakePackage):
"-DCMAKE_INSTALL_RUNDIR=/var/run",
]
+ cmake_args.append(self.define_from_variant("ENABLE_STATIC", "static"))
+
if self.spec.satisfies("@:39.0"):
cmake_args.extend(
[