]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
meson: Fix checking options build-bits.
authorAlexander Shursha <kekek2@ya.ru>
Mon, 9 Dec 2024 09:59:40 +0000 (12:59 +0300)
committerAlexander Shursha <kekek2@ya.ru>
Sun, 29 Dec 2024 05:50:38 +0000 (08:50 +0300)
On FreeBSD run --auto-features=disabled -Dbuild-libblkid=enabled
-Dprogram-tests=false

builded bin/bits

Sponsored by: Future Crew, LLC

meson.build

index 28f0df8ba77087d3d05fb5d94ba7322c82bbebd0..e4b2cb4c1d614d7ed2b5b231fac6d65b88e43d46 100644 (file)
@@ -1215,11 +1215,12 @@ exe = executable(
   include_directories : includes,
   link_with : lib_common,
   install_dir : usrbin_exec_dir,
-  install : true)
+  install : opt,
+  build_by_default : opt)
 if opt and not is_disabler(exe)
-exes += exe
-manadocs += ['text-utils/bits.1.adoc']
-bashcompletions += ['bits']
+  exes += exe
+  manadocs += ['text-utils/bits.1.adoc']
+  bashcompletions += ['bits']
 endif
 
 opt = not get_option('build-col').require(is_glibc).disabled()