]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2899] explicitly LDADD libb10-threads from log lock test
authorJINMEI Tatuya <jinmei@isc.org>
Thu, 9 May 2013 20:21:05 +0000 (20:21 +0000)
committerJINMEI Tatuya <jinmei@isc.org>
Thu, 9 May 2013 20:21:05 +0000 (20:21 +0000)
seems to be necessary for some OS.  also explicitly include the relevant
header file.

src/lib/log/tests/Makefile.am
src/lib/log/tests/logger_lock_test.cc

index fbb2217747fe70cc406847cae12fd722ce9a6edb..36582e6d23d47e7963b443f350794d82b28fb7a3 100644 (file)
@@ -46,6 +46,8 @@ buffer_logger_test_LDADD += $(top_builddir)/src/lib/util/libb10-util.la
 buffer_logger_test_LDADD += $(top_builddir)/src/lib/exceptions/libb10-exceptions.la
 buffer_logger_test_LDADD += $(AM_LDADD) $(LOG4CPLUS_LIBS)
 
+# This test directly uses libb10-threads, and on some systems it seems to
+# require explicit LDADD (even if libb10-log has indirect dependencies)
 noinst_PROGRAMS += logger_lock_test
 logger_lock_test_SOURCES = logger_lock_test.cc
 nodist_logger_lock_test_SOURCES = log_test_messages.cc log_test_messages.h
@@ -53,6 +55,7 @@ logger_lock_test_CPPFLAGS = $(AM_CPPFLAGS)
 logger_lock_test_LDFLAGS = $(AM_LDFLAGS)
 logger_lock_test_LDADD  = $(top_builddir)/src/lib/log/libb10-log.la
 logger_lock_test_LDADD += $(top_builddir)/src/lib/util/libb10-util.la
+logger_lock_test_LDADD += $(top_builddir)/src/lib/util/threads/libb10-threads.la
 logger_lock_test_LDADD += $(top_builddir)/src/lib/exceptions/libb10-exceptions.la
 logger_lock_test_LDADD += $(AM_LDADD) $(LOG4CPLUS_LIBS)
 
index 2e4001586f870c457d18d7ee4fa3aea83eae76ab..605c2070dfc77dc03ab241bff646d8fd577bbb7e 100644 (file)
@@ -18,6 +18,8 @@
 #include <log/log_messages.h>
 #include <log/interprocess/interprocess_sync.h>
 #include "log_test_messages.h"
+
+#include <util/threads/sync.h>
 #include <iostream>
 
 using namespace std;