To handover build binary for different environment users
Build result checked with ldd below
[root@localhost .build]# ldd nvme
not a dynamic executable
Do not run libnvme tests(set subproject revision successful build)
Disable keyutils on libnvme(pkgconfig always find shared first when -llib is given)
Signed-off-by: Steven Seungcheol Lee <sc108.lee@samsung.com>
debug:
meson ${BUILD-DIR} --buildtype=debug
ninja -C ${BUILD-DIR}
+
+.PHONY: static
+static:
+ meson ${BUILD-DIR} --buildtype=release \
+ --default-library=static -Dc_link_args="-static" \
+ --wrap-mode=forcefallback \
+ -Dlibnvme:tests=false -Dlibnvme:keyutils=disabled
+ ninja -C ${BUILD-DIR}