Skip to content

Commit 84d25b1

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 1494a4d commit 84d25b1

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

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)