]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
meson: gate pivot_root on LINUX
authorThomas Weißschuh <thomas@t-8ch.de>
Wed, 29 Apr 2026 11:56:11 +0000 (13:56 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Thu, 14 May 2026 11:19:43 +0000 (13:19 +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 d67fec2f36b4e3c713cbe6c1a895144621fdcd6b..8ce013a2091314f173ebc67c003c6ccd6d5c5252 100644 (file)
@@ -2131,7 +2131,9 @@ if opt and not is_disabler(exe)
   bashcompletions += ['fallocate']
 endif
 
-opt = get_option('build-pivot_root').allowed()
+opt = get_option('build-pivot_root') \
+      .require(LINUX) \
+      .allowed()
 exe = executable(
   'pivot_root',
   pivot_root_sources,