]> git.ipfire.org Git - thirdparty/systemd.git/commit - meson.build
build-sys: Add option to link systemctl statically
authorFelipe Sateler <fsateler@debian.org>
Tue, 22 May 2018 19:08:57 +0000 (15:08 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 31 May 2018 14:05:00 +0000 (16:05 +0200)
commitf3794366b07262ca213c63b61361e15647cfafda
tree30456beb19633423ac409a15f27ec7ac6e11e679
parent89544ae65827c6fc19579861961d26157b572bbb
build-sys: Add option to link systemctl statically

Systemctl is special because it is required for many tasks that may need to
be performed when the system is not fully configured and/or partially
broken:

1. Installing/Uninstalling services during OS installs and upgrades
2. Shutting down the system

Therefore reduce the number of dependencies that systemctl pulls in, by
not linking to systemd-shared. This brings a bit of resilience to
systemctl (and its aliases shutdown, reboot, etc), by linking against
less external libraries.

Because this extra resilience comes at a cost of approximately 580 KB
extra space, this is done behind a meson build option.
meson.build
meson_options.txt