]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
Add new meson configure option for controlling systemd-analyze support
authorJakov Smolic <jakov.smolic@sartura.hr>
Wed, 15 Apr 2020 15:53:36 +0000 (17:53 +0200)
committerJakov Smolic <jakov.smolic@sartura.hr>
Wed, 15 Apr 2020 15:53:43 +0000 (17:53 +0200)
Enables building systemd without systemd-analyze, which in
return saves approx. 4 MB of space upon installing systemd.

Signed-off-by: Jakov Smolic <jakov.smolic@sartura.hr>
Signed-off-by: Luka Perkov <luka.perkov@sartura.hr>
meson.build
meson_options.txt

index bfd708cb4c26a416ccf0c0764676a97965b0c3e5..8a9f4d08ed0475e846a08edd3e6c4a59a45b0e51 100644 (file)
@@ -1714,7 +1714,7 @@ exe = executable('systemd-analyze',
                                  libmount,
                                  libblkid],
                  install_rpath : rootlibexecdir,
-                 install : true)
+                 install : get_option('analyze'))
 public_programs += exe
 
 executable('systemd-journald',
index 30cf1477184328a2e6fe5446296cfc9062516e57..5daed21598434874676aa3742bc4121efd192979 100644 (file)
@@ -364,3 +364,5 @@ option('llvm-fuzz', type : 'boolean', value : 'false',
        description : 'build against LLVM libFuzzer')
 option('kernel-install', type: 'boolean', value: 'true',
        description : 'include kernel-install feature')
+option('analyze', type: 'boolean', value: 'true',
+       description : 'include systemd-analyze')