Code

java: link with libpthread on FreeBSD
authorRuben Kerkhof <ruben@tilaa.com>
Fri, 11 Dec 2015 22:43:18 +0000 (23:43 +0100)
committerRuben Kerkhof <ruben@tilaa.com>
Fri, 11 Dec 2015 22:43:18 +0000 (23:43 +0100)
configure.ac
src/Makefile.am

index e86ae51712b2c41176d165672a5a8148f5b0c1a7..ce091acaea10912366d61752c8c681f40cb53389 100644 (file)
@@ -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
index ff3eef495cc556d6a13c30aea98900e77c0f9280..b4f15ffb02cccecf64a4dfa480099ee142b14153 100644 (file)
@@ -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