Update configure.ac for v8 plugin
Explicitly link with -lpthread to fix detection and compilation on some Linux distributions.
This commit is contained in:
parent
415d7bc0a0
commit
664d5e6c59
@ -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 <v8.h>
|
||||
@ -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([
|
||||
|
Loading…
x
Reference in New Issue
Block a user