From: Florian Forster Date: Thu, 11 Jun 2015 13:35:43 +0000 (+0100) Subject: Makefile.am: Link tests with required libraries, too. X-Git-Tag: collectd-5.5.2~8 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c51727b2b7757dc289608e2b46b4364d41ae7c69;p=collectd.git 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 (cherry picked from commit 6213557b1d5c79a60e9c4322263836ca6066aa0e) --- diff --git a/src/daemon/Makefile.am b/src/daemon/Makefile.am index 877d6b75..88fc7129 100644 --- a/src/daemon/Makefile.am +++ b/src/daemon/Makefile.am @@ -96,7 +96,7 @@ check_PROGRAMS = test_common test_utils_avltree test_utils_heap TESTS = test_common test_utils_avltree test_utils_heap test_common_SOURCES = common_test.c ../testing.h -test_common_LDADD = libcommon.la libplugin_mock.la +test_common_LDADD = libcommon.la libplugin_mock.la $(COMMON_LIBS) test_utils_avltree_SOURCES = utils_avltree_test.c ../testing.h test_utils_avltree_LDADD = libavltree.la $(COMMON_LIBS)