Skip to content

Commit 37f0290

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. The examples are also not really usefull in this build, thus disable them as well. Signed-off-by: Daniel Wagner <[email protected]>
1 parent 1141d61 commit 37f0290

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,12 @@ 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+
-Dlibnvme:examples=false
82+
7983
meson compile -C ${BUILD-DIR}

0 commit comments

Comments
 (0)