Skip to content

Commit a5b4c67

Browse files
committed
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. Signed-off-by: Daniel Wagner <wagi@kernel.org>
1 parent 1494a4d commit a5b4c67

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,11 @@ static:
7272
--wrap-mode=forcefallback \
7373
--default-library=static \
7474
-Dc_link_args="-static" \
75+
-Dlibnvme:default_library=static \
7576
-Dlibnvme:keyutils=disabled \
7677
-Dlibnvme:liburing=disabled \
7778
-Dlibnvme:python=disabled \
78-
-Dlibnvme:openssl=disabled
79+
-Dlibnvme:openssl=disabled \
80+
-Dlibnvme:tests=false
81+
7982
meson compile -C ${BUILD-DIR}

0 commit comments

Comments
 (0)