]> git.ipfire.org Git - thirdparty/kmod.git/commit
meson: Allow to set dlopen option for compression libraries
authorLucas De Marchi <lucas.de.marchi@gmail.com>
Wed, 4 Dec 2024 07:19:32 +0000 (01:19 -0600)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Fri, 6 Dec 2024 21:15:20 +0000 (13:15 -0800)
commitbbab061e517afc1286a68bc6e7b3f4103626a104
tree6987cff8b34063f6443e2e4ec42047eb8d9587da
parent8d39823eeb8c3fb25c7907259a7cd7fe88bc9df4
meson: Allow to set dlopen option for compression libraries

Add a dlopen option that allows toggling what libraries libkmod should
attempt to dlopen. If -Ddlopen=foo is passed, it means that library is
required to build, regardless of -Dfoo=*. However that library will
only be linked in if it's not set as dlopen.

Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
[ with disagreement on the need to toggle each one individually,
  it'd be better to be all-or-nothing dlopen'ed ]
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/262
configure.ac
libkmod/libkmod-file-xz.c
libkmod/libkmod-file-zlib.c
libkmod/libkmod-file-zstd.c
meson.build
meson_options.txt