chiark / gitweb /
build-sys: Add option to link systemctl statically
authorFelipe Sateler <fsateler@debian.org>
Tue, 22 May 2018 19:08:57 +0000 (15:08 -0400)
committerSven Eden <yamakuzure@gmx.net>
Fri, 24 Aug 2018 14:47:08 +0000 (16:47 +0200)
commit81f6f7b349ab6573efcb0ef5c5994b0e7e8c8d10
tree19493551324e8a053b4b1d7acb46039f826af411
parenta6aa5c9e8f623797c3868ab0bc5805543b4ef1b7
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