From: Ruben Kerkhof Date: Fri, 11 Dec 2015 22:43:18 +0000 (+0100) Subject: java: link with libpthread on FreeBSD X-Git-Tag: collectd-5.6.0~493^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=569944797fbd3aa79d07cfa0411e9e2d7a9f71c6;p=collectd.git java: link with libpthread on FreeBSD --- diff --git a/configure.ac b/configure.ac index e86ae517..ce091aca 100644 --- a/configure.ac +++ b/configure.ac @@ -2372,7 +2372,7 @@ then AC_CHECK_LIB(jvm, JNI_CreateJavaVM, [with_java="yes"], [with_java="no (Symbol 'JNI_CreateJavaVM' not found)"], - [$JAVA_LIBS]) + [$JAVA_LIBS $PTHREAD_LIBS]) fi if test "x$with_java" = "xyes" then diff --git a/src/Makefile.am b/src/Makefile.am index ff3eef49..b4f15ffb 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -486,7 +486,7 @@ java_la_SOURCES = java.c java_la_CPPFLAGS = $(AM_CPPFLAGS) $(JAVA_CPPFLAGS) java_la_CFLAGS = $(AM_CFLAGS) $(JAVA_CFLAGS) java_la_LDFLAGS = $(PLUGIN_LDFLAGS) $(JAVA_LDFLAGS) -java_la_LIBADD = $(JAVA_LIBS) +java_la_LIBADD = $(PTHREAD_LIBS) $(JAVA_LIBS) endif if BUILD_PLUGIN_LOAD