Makefile.am: Link tests with required libraries, too.
authorFlorian Forster <octo@collectd.org>
Thu, 11 Jun 2015 13:35:43 +0000 (14:35 +0100)
committerFlorian Forster <octo@collectd.org>
Thu, 11 Jun 2015 13:35:43 +0000 (14:35 +0100)
commit6213557b1d5c79a60e9c4322263836ca6066aa0e
tree75d794fbfd2b99aaa3c072a8e2a4875b22ace32c
parent0a3cf365418e4ac9a8d7c1d1069740743673a09a
Makefile.am: Link tests with required libraries, too.

"make check" fails on Solaris because libraries are missing:

      CCLD     test_common
    Undefined first referenced
     symbol   in file
    kc                          ./.libs/libcommon.a(common.o)
    kstat_data_lookup           ./.libs/libcommon.a(common.o)
    kstat_lookup                ./.libs/libcommon.a(common.o)
    kstat_read                  ./.libs/libcommon.a(common.o)
    getaddrinfo                 ./.libs/libcommon.a(common.o)
    freeaddrinfo                ./.libs/libcommon.a(common.o)
    gai_strerror                ./.libs/libcommon.a(common.o)
    ld: fatal: symbol referencing errors. No output written to test_common
    collect2: error: ld returned 1 exit status
src/daemon/Makefile.am