Otherwise compiling may fail with e.g.:

./.libs/libsystemd-core.a(libsystemd_core_la-condition.o): In function 
`test_host':
[...]/systemd-189/src/core/condition.c:205: undefined reference to 
`sd_id128_from_string'
[...]/systemd-189/src/core/condition.c:207: undefined reference to 
`sd_id128_get_machine'
collect2: ld returned 1 exit status

It seems that in most cases the compiler removes the relevant functions
when optimizing. In some cases this does not happen, e.g. here with a PPC
toolchain.
---
 Makefile.am |    1 +
 1 file changed, 1 insertion(+)

diff --git a/Makefile.am b/Makefile.am
index e5ace9b..138673e 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1003,6 +1003,7 @@ libsystemd_core_la_LIBADD = \
        libsystemd-label.la \
        libsystemd-shared.la \
        libsystemd-dbus.la \
+       libsystemd-id128-internal.la \
        libudev.la \
        $(LIBWRAP_LIBS) \
        $(PAM_LIBS) \
-- 
1.7.10.4

_______________________________________________
systemd-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to