Add new meson configure option for controlling systemd-analyze support

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>
This commit is contained in:
Jakov Smolic 2020-04-15 17:53:36 +02:00
parent 3614df0575
commit dd0f79523f
No known key found for this signature in database
GPG Key ID: 68C3B85249E55CC6
2 changed files with 3 additions and 1 deletions

View 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',

View 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')