From 569944797fbd3aa79d07cfa0411e9e2d7a9f71c6 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Fri, 11 Dec 2015 23:43:18 +0100 Subject: [PATCH] java: link with libpthread on FreeBSD --- configure.ac | 2 +- src/Makefile.am | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 -- 2.11.0