]> git.ipfire.org Git - thirdparty/kmod.git/commit
meson: Make dlopen=all the default
authorLucas De Marchi <demarchi@kernel.org>
Fri, 24 Apr 2026 14:55:51 +0000 (09:55 -0500)
committerLucas De Marchi <demarchi@kernel.org>
Thu, 7 May 2026 05:57:56 +0000 (00:57 -0500)
commitc7441ff742a665b49792201e23f37eee3a7ff79e
tree7079af1831beb3b87aeaa490362e55ad22f2452e
parentca20fb99feed8439fb8573784ca2e416a14cde3a
meson: Make dlopen=all the default

As of earlier commit, all dependencies can be dlopen'd on demand. Do
that for all optional libraries by default, but still allow it to be
overridden during build.

Example numbers/benefits taken from `modprobe --show-depends nouveau`:

 - fewer instr - 50% reduction, 1.2M -> 0.5M
 - less memory use - Rss by ~33%, 3M -> 2M
 - reduced attack surface

Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/420
Signed-off-by: Lucas De Marchi <demarchi@kernel.org>
README.md
meson_options.txt