Enable build with static library for zck.
authorCaleb Jorden <caljorden@hotmail.com>
Thu, 1 Nov 2018 08:05:53 +0000 (13:35 +0530)
committerCaleb Jorden <caljorden@hotmail.com>
Thu, 1 Nov 2018 08:05:53 +0000 (13:35 +0530)
Very small change in Meson config to allow zck to build
with a static library instead of just a dynamic one.

To use, run "meson --default-library=static build"

The resulting binaries should now be statically linked
with zck (resuilting in fewer dependencies).

src/lib/meson.build

index 73f50f3835b73ce793ce7eafcf12d9f2e8db4a32..e070c370460cc5684bf80eb49a81e2635634613d 100644 (file)
@@ -6,7 +6,7 @@ subdir('hash')
 subdir('index')
 subdir('dl')
 lib_sources += files('zck.c', 'header.c', 'io.c', 'log.c', 'compint.c', 'error.c')
-zcklib = shared_library('zck',
+zcklib = library('zck',
                         lib_sources,
                         include_directories: inc,
                         dependencies: [zstd_dep, openssl_dep],