From e4afbb3eac5b20cf2fdf240af1caa576600ce152 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sun, 1 Dec 2013 12:28:32 -0800 Subject: [PATCH] build-sys: allow building systemctl with --disable-logind When logind is disabled, do not attempt to link against the non-existing libsystemd-login-internal.la library. --- Makefile.am | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Makefile.am b/Makefile.am index a7baea51c..0de03fe76 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1784,8 +1784,14 @@ systemctl_LDADD = \ libsystemd-units.la \ libsystemd-label.la \ libsystemd-bus-internal.la \ - libsystemd-logs.la \ - libsystemd-login-internal.la \ + libsystemd-logs.la + +if ENABLE_LOGIND +systemctl_LDADD += \ + libsystemd-login-internal.la +endif + +systemctl_LDADD += \ libsystemd-journal-internal.la \ libsystemd-id128-internal.la \ libsystemd-daemon-internal.la \ -- 2.30.2