From: Josh Triplett Date: Thu, 18 Apr 2013 18:32:26 +0000 (-0700) Subject: systemd-logind: Fix linking by reordering libraries in LDADD X-Git-Tag: v202~6 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=4befe2eba061fa47cd0c30eff3f8348971e5d088;ds=inline systemd-logind: Fix linking by reordering libraries in LDADD libsystemd-audit needs functions from libsystemd-shared, so libsystemd-audit needs to appear first. Otherwise: CCLD systemd-logind ./.libs/libsystemd-audit.a(audit.o): In function `audit_session_from_pid': /home/josh/src/systemd/src/shared/audit.c:50: undefined reference to `detect_container' --- diff --git a/Makefile.am b/Makefile.am index 80d0f1fb8..a9f72c1e1 100644 --- a/Makefile.am +++ b/Makefile.am @@ -3467,8 +3467,8 @@ systemd_logind_CFLAGS = \ systemd_logind_LDADD = \ libsystemd-label.la \ - libsystemd-shared.la \ libsystemd-audit.la \ + libsystemd-shared.la \ libsystemd-daemon.la \ libsystemd-dbus.la \ libudev.la