summaryrefslogtreecommitdiffstats
path: root/src/pstore
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/pstore
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/pstore')
-rw-r--r--src/pstore/meson.build6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pstore/meson.build b/src/pstore/meson.build
index b6fda8723d..27c2855fb8 100644
--- a/src/pstore/meson.build
+++ b/src/pstore/meson.build
@@ -7,9 +7,9 @@ executables += [
'sources' : files('pstore.c'),
'dependencies' : [
libacl,
- liblz4,
- libxz,
- libzstd,
+ liblz4_cflags,
+ libxz_cflags,
+ libzstd_cflags,
threads,
],
},