summaryrefslogtreecommitdiffstats
path: root/src/journal-remote
diff options
context:
space:
mode:
authorMatteo Croce <teknoraver@meta.com>2024-02-27 21:28:14 +0100
committerMatteo Croce <teknoraver@meta.com>2024-03-05 12:37:21 +0100
commit3fc72d54132151c131301fc7954e0b44cdd3c860 (patch)
tree728c155c4fac5c52ca571615b753cefa4b5306c2 /src/journal-remote
parentmove dlfcn-util into basic (diff)
downloadsystemd-3fc72d54132151c131301fc7954e0b44cdd3c860.tar.xz
systemd-3fc72d54132151c131301fc7954e0b44cdd3c860.zip
dynamically load compression libraries
Dynamically load liblz4, libzstd and liblzma with dlopen(). This helps to reduce the size of the initrd image when these libraries are not really needed.
Diffstat (limited to 'src/journal-remote')
-rw-r--r--src/journal-remote/meson.build10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/journal-remote/meson.build b/src/journal-remote/meson.build
index 964a251774..10a82751d7 100644
--- a/src/journal-remote/meson.build
+++ b/src/journal-remote/meson.build
@@ -22,9 +22,9 @@ libsystemd_journal_remote = static_library(
libsystemd_journal_remote_sources,
include_directories : includes,
dependencies : [libgnutls,
- liblz4,
+ liblz4_cflags,
libmicrohttpd,
- libxz,
+ libxz_cflags,
threads,
userspace],
build_by_default : false)
@@ -38,9 +38,9 @@ systemd_journal_gatewayd_sources = files(
common_deps = [
libgnutls,
- liblz4,
- libxz,
- libzstd,
+ liblz4_cflags,
+ libxz_cflags,
+ libzstd_cflags,
threads,
]