]> git.ipfire.org Git - thirdparty/kmod.git/commit
Always define and use ENABLE_ELFDBG
authorEmil Velikov <emil.l.velikov@gmail.com>
Tue, 15 Oct 2024 19:36:50 +0000 (20:36 +0100)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Thu, 17 Oct 2024 14:27:15 +0000 (09:27 -0500)
commiteea5278df7fa6e3e20aebdd42df9368f40a21694
tree50dc6238c6d562cac2da7b492f273c0b2966bc00
parent8c1c901e9e429a2a7a3f564656b5267d80bfc700
Always define and use ENABLE_ELFDBG

Convert the "if defined FOO" pre-processor checks for compiler ones "if
(FOO == 1)".

This makes things easier to reason with and ensures both code-paths are
build-tested. In case, the option is disabled DCE will kick in (assuming
you're not force disabling all optimisations) and remove the respective
code.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/173
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
configure.ac
libkmod/libkmod-elf.c
meson.build