chiark / gitweb /
build-sys: allow building systemctl with --disable-logind
authorMarcel Holtmann <marcel@holtmann.org>
Sun, 1 Dec 2013 20:28:32 +0000 (12:28 -0800)
committerMarcel Holtmann <marcel@holtmann.org>
Sun, 1 Dec 2013 20:28:32 +0000 (12:28 -0800)
When logind is disabled, do not attempt to link against the non-existing
libsystemd-login-internal.la library.

Makefile.am

index a7baea5..0de03fe 100644 (file)
@@ -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 \