]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
meson: gate last on LINUX
authorThomas Weißschuh <thomas@t-8ch.de>
Wed, 22 Apr 2026 21:07:45 +0000 (23:07 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Mon, 4 May 2026 13:52:04 +0000 (15:52 +0200)
This tool uses Linux-specific API, encode this in the build system.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
meson.build

index e815a3739ad8ef25bebeed2c02fa6b988d759494..14d9e36d2a6e1005df8d87c89acdf97cb2770f11 100644 (file)
@@ -1111,7 +1111,9 @@ exe = executable(
   build_by_default : program_tests)
 exes += exe
 
-opt = get_option('build-last').allowed()
+opt = get_option('build-last') \
+      .require(LINUX) \
+      .allowed()
 exe = executable(
   'last',
   last_sources,