summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2013-12-01 12:28:32 -0800
committerMarcel Holtmann <marcel@holtmann.org>2013-12-01 12:28:32 -0800
commite4afbb3eac5b20cf2fdf240af1caa576600ce152 (patch)
treebcf5c1176309d165a523d5b00459d85d73dd6d7f /Makefile.am
parent537220d9102a12aa4a65d5479130ac2cdb323fff (diff)
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.
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am10
1 files changed, 8 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am
index a7baea51cd..0de03fe76e 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 \