]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
meson: gate lsmem on LINUX
authorThomas Weißschuh <thomas@t-8ch.de>
Wed, 22 Apr 2026 21:17:45 +0000 (23:17 +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 c16310b5eb35888053fdfe0a91194ecd9ce06d2a..ceaef9f09f78c6b45b9355e5fbf7040045c072bf 100644 (file)
@@ -1455,7 +1455,9 @@ if opt and not is_disabler(exe)
     bashcompletions += ['hexdump']
 endif
 
-opt = get_option('build-lsmem').allowed()
+opt = get_option('build-lsmem') \
+      .require(LINUX) \
+      .allowed()
 exe = executable(
   'lsmem',
   lsmem_sources,