chiark / gitweb /
build-sys: fix linking order
authorKay Sievers <kay@vrfy.org>
Thu, 22 May 2014 00:41:32 +0000 (09:41 +0900)
committerKay Sievers <kay@vrfy.org>
Thu, 22 May 2014 00:46:09 +0000 (09:46 +0900)
./.libs/libsystemd-network.a(libsystemd_network_la-network-internal.o):
  network-internal.c:function net_get_unique_predictable_data:
  error: undefined reference to 'udev_device_get_property_value'
collect2: error: ld returned 1 exit status

Makefile.am

index ac65004..baf661d 100644 (file)
@@ -190,6 +190,7 @@ AM_CPPFLAGS = \
        -I $(top_srcdir)/src/journal \
        -I $(top_srcdir)/src/timedate \
        -I $(top_srcdir)/src/timesync \
+       -I $(top_srcdir)/src/resolve \
        -I $(top_srcdir)/src/systemd \
        -I $(top_builddir)/src/core \
        -I $(top_srcdir)/src/core \
@@ -2531,6 +2532,7 @@ test_dhcp_client_SOURCES = \
 
 test_dhcp_client_LDADD = \
        libsystemd-network.la \
+       libudev-internal.la \
        libsystemd-label.la \
        libsystemd-internal.la \
        libsystemd-shared.la
@@ -4062,12 +4064,13 @@ CLEANFILES += \
        src/timesync/timesyncd-gperf.c
 
 systemd_timesyncd_LDADD = \
-       libsystemd-label.la \
-       libsystemd-internal.la \
-       libsystemd-shared.la \
        libsystemd-resolve.la \
        libsystemd-network.la \
+       libudev-internal.la \
+       libsystemd-label.la \
        libsystemd-capability.la \
+       libsystemd-internal.la \
+       libsystemd-shared.la \
        -lm
 
 rootlibexec_PROGRAMS += \
@@ -4214,10 +4217,11 @@ CLEANFILES += \
        src/resolve/resolved-gperf.c
 
 systemd_resolved_LDADD = \
+       libsystemd-network.la \
+       libudev-internal.la \
        libsystemd-label.la \
        libsystemd-internal.la \
-       libsystemd-shared.la \
-       libsystemd-network.la
+       libsystemd-shared.la
 
 rootlibexec_PROGRAMS += \
        systemd-resolved
@@ -4299,8 +4303,7 @@ systemd_networkd_wait_online_LDADD = \
        libsystemd-network.la \
        libudev-internal.la \
        libsystemd-internal.la \
-       libsystemd-shared.la \
-       libsystemd-network.la
+       libsystemd-shared.la
 
 test_network_SOURCES = \
        src/network/test-network.c