From 664d5e6c5951ef2205bd8faaf1e29140f6881fce Mon Sep 17 00:00:00 2001 From: Chris Hills Date: Fri, 15 Jun 2018 18:31:09 +0100 Subject: [PATCH] Update configure.ac for v8 plugin Explicitly link with -lpthread to fix detection and compilation on some Linux distributions. --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index f00d387e2..b41d9d43e 100644 --- a/configure.ac +++ b/configure.ac @@ -903,7 +903,7 @@ if test "x$enable_javascript" = "xyes" ; then if test "x$ac_found_v8_header" = "xyes" ; then #AC_CHECK_LIB(v8,v8,ac_found_v8_lib="yes",ac_found_v8_lib="no") ac_save_LIBS="$LIBS" - LIBS="$LIBS -lv8" + LIBS="$LIBS -lv8 -lpthread" AC_MSG_CHECKING(for v8 usability in programs) AC_TRY_RUN([ #include @@ -917,7 +917,7 @@ if test "x$enable_javascript" = "xyes" ; then AC_MSG_RESULT(yes) v8_found="yes" V8_CFLAGS="" - V8_LFLAGS="-lv8" + V8_LFLAGS="-lv8 -lpthread" else AC_MSG_RESULT(no) AC_MSG_WARN([