From 84d25b1d0a98edfffac24a27a0384aa5f738e841 Mon Sep 17 00:00:00 2001 From: Daniel Wagner Date: Thu, 24 Jul 2025 10:16:41 +0200 Subject: [PATCH] build: fix static build The libnvme builds needs to be told not to build a shared object version. Also there is no point in building the tests which depend on LD preload trick to be executed. The examples are also not really usefull in this build, thus disable them as well. Signed-off-by: Daniel Wagner --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b52143b773..30830fbc54 100644 --- a/Makefile +++ b/Makefile @@ -72,8 +72,12 @@ static: --wrap-mode=forcefallback \ --default-library=static \ -Dc_link_args="-static" \ + -Dlibnvme:default_library=static \ -Dlibnvme:keyutils=disabled \ -Dlibnvme:liburing=disabled \ -Dlibnvme:python=disabled \ - -Dlibnvme:openssl=disabled + -Dlibnvme:openssl=disabled \ + -Dlibnvme:tests=false \ + -Dlibnvme:examples=false + meson compile -C ${BUILD-DIR}