chiark / gitweb /
build-sys: move -lresolv out of CFLAGS
authorTom Gundersen <teg@jklm.no>
Mon, 3 Feb 2014 14:25:45 +0000 (15:25 +0100)
committerTom Gundersen <teg@jklm.no>
Mon, 3 Feb 2014 14:25:45 +0000 (15:25 +0100)
Thomas H.P. Andersen <phomes@gmail.com> wrote:
> Does -lresolv belong in libsystemd_la_CFLAGS? I would have thought
> that it should be in LIBADD for the lib and LDADD for the test.

Makefile.am

index 84e3b35fafd6d77f99331fe1df84aeb08812c71d..8af29d160e702f82204c292874b1aec7c40aabf8 100644 (file)
@@ -2039,12 +2039,12 @@ nodist_libsystemd_la_SOURCES = \
 
 libsystemd_la_LIBADD = \
        libsystemd-daemon-internal.la \
-       libsystemd-shared.la
+       libsystemd-shared.la \
+       -lresolv
 
 libsystemd_la_CFLAGS = \
        $(AM_CFLAGS) \
-       -pthread \
-       -lresolv
+       -pthread
 
 libsystemd_la_LDFLAGS = \
        $(AM_LDFLAGS) \
@@ -2316,7 +2316,8 @@ test_resolve_SOURCES = \
 
 test_resolve_LDADD = \
        libsystemd-internal.la \
-       libsystemd-shared.la
+       libsystemd-shared.la \
+       -lresolv
 
 test_resolve_CFLAGS = \
        $(AM_CFLAGS) \