]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
meson: Add missing check for build-ipcrm option
authorJordan Williams <jordan@jwillikers.com>
Wed, 17 Apr 2024 16:11:21 +0000 (11:11 -0500)
committerJordan Williams <jordan@jwillikers.com>
Wed, 17 Apr 2024 16:11:21 +0000 (11:11 -0500)
The build-ipcrm option exists in meson_options.txt but has no effect.
Use the option to gate building the ipcrm executable.

Signed-off-by: Jordan Williams <jordan@jwillikers.com>
meson.build

index 0cb879c3a812bb6cdabe5872720e1ab5ea96bceb..d739b01a4704aa38c6f55a64e6802e84e515b2fd 100644 (file)
@@ -1398,16 +1398,20 @@ exes += exe
 manadocs += ['sys-utils/ipcmk.1.adoc']
 bashcompletions += ['ipcmk']
 
+opt = get_option('build-ipcrm').allowed()
 exe = executable(
   'ipcrm',
   ipcrm_sources,
   include_directories : includes,
   link_with : [lib_common],
   install_dir : usrbin_exec_dir,
-  install : true)
-exes += exe
-manadocs += ['sys-utils/ipcrm.1.adoc']
-bashcompletions += ['ipcrm']
+  install : opt,
+  build_by_default : opt)
+if opt and not is_disabler(exe)
+  exes += exe
+  manadocs += ['sys-utils/ipcrm.1.adoc']
+  bashcompletions += ['ipcrm']
+endif
 
 opt = not get_option('build-ipcs').disabled()
 exe = executable(