From: Jordan Williams Date: Wed, 17 Apr 2024 16:11:21 +0000 (-0500) Subject: meson: Add missing check for build-ipcrm option X-Git-Tag: v2.42-start~394^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=25c9b3b4d849f6211ccb668932f0f8823286cd7d;p=thirdparty%2Futil-linux.git meson: Add missing check for build-ipcrm option 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 --- diff --git a/meson.build b/meson.build index 0cb879c3a..d739b01a4 100644 --- a/meson.build +++ b/meson.build @@ -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(