From 04682057519bc8300b6064e522f15643a71ba9fb Mon Sep 17 00:00:00 2001 From: Andrew-Dunning-NNL <67964561+Andrew-Dunning-NNL@users.noreply.github.com> Date: Thu, 16 Feb 2023 19:01:19 -0500 Subject: [PATCH] rdma-core: add static variant (#35308) Co-authored-by: Massimiliano Culpo --- var/spack/repos/builtin/packages/rdma-core/package.py | 8 ++++++++ 1 file changed, 8 insertions(+) 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 @@ def cmake_args(self): "-DCMAKE_INSTALL_RUNDIR=/var/run", ] + cmake_args.append(self.define_from_variant("ENABLE_STATIC", "static")) + if self.spec.satisfies("@:39.0"): cmake_args.extend( [