]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
meson: fix build of lslogins with -Dbuild-liblastlog2=disabled
authorThomas Weißschuh <thomas@t-8ch.de>
Sat, 17 Feb 2024 08:54:56 +0000 (09:54 +0100)
committerThomas Weißschuh <thomas@t-8ch.de>
Sat, 17 Feb 2024 08:54:56 +0000 (09:54 +0100)
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
meson.build

index 5ddf79463432718fd1fc9eb26a3dcef978ad5084..fbed1f79fbe37711c23c3180acddc4551f429453 100644 (file)
@@ -1107,8 +1107,8 @@ exe = executable(
   include_directories : includes,
   link_with : [lib_common,
                lib_smartcols,
-              lib_lastlog2,
-               logindefs_c],
+               logindefs_c] +
+               (build_liblastlog2 ? [lib_lastlog2] : []),
   dependencies : [lib_selinux,
                   lib_systemd],
   install_dir : usrbin_exec_dir,