summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorAndrew-Dunning-NNL <67964561+Andrew-Dunning-NNL@users.noreply.github.com>2023-02-16 19:01:19 -0500
committerGitHub <noreply@github.com>2023-02-16 16:01:19 -0800
commit04682057519bc8300b6064e522f15643a71ba9fb (patch)
treee2435f40c24bed555a2c347383ad44948c730b01 /var
parent68b711c1ad7157930154fc37f4a912aaf325fbfb (diff)
downloadspack-04682057519bc8300b6064e522f15643a71ba9fb.tar.gz
spack-04682057519bc8300b6064e522f15643a71ba9fb.tar.bz2
spack-04682057519bc8300b6064e522f15643a71ba9fb.tar.xz
spack-04682057519bc8300b6064e522f15643a71ba9fb.zip
rdma-core: add static variant (#35308)
Co-authored-by: Massimiliano Culpo <massimiliano.culpo@gmail.com>
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(
[