summaryrefslogtreecommitdiff
path: root/meson_options.txt
diff options
context:
space:
mode:
authorFelipe Sateler <fsateler@debian.org>2018-05-22 15:08:57 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-05-31 16:05:00 +0200
commitf3794366b07262ca213c63b61361e15647cfafda (patch)
tree30456beb19633423ac409a15f27ec7ac6e11e679 /meson_options.txt
parent89544ae65827c6fc19579861961d26157b572bbb (diff)
downloadsystemd-f3794366b07262ca213c63b61361e15647cfafda.tar.gz
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.
Diffstat (limited to 'meson_options.txt')
-rw-r--r--meson_options.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/meson_options.txt b/meson_options.txt
index 85d794b08b..557d7843bc 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -13,6 +13,8 @@ option('rootprefix', type : 'string',
description : '''override the root prefix''')
option('link-udev-shared', type : 'boolean',
description : 'link systemd-udev and its helpers to libsystemd-shared.so')
+option('link-systemctl-shared', type: 'boolean',
+ description : 'link systemctl against libsystemd-shared.so')
option('static-libsystemd', type : 'combo',
choices : ['false', 'true', 'pic', 'no-pic'],
description : '''install a static library for libsystemd''')