From c51727b2b7757dc289608e2b46b4364d41ae7c69 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Thu, 11 Jun 2015 14:35:43 +0100 Subject: [PATCH] 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) --- src/daemon/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.11.0