0
0
mirror of https://github.com/phpv8/v8js.git synced 2025-01-03 11:21:51 +00:00

Merge pull request #154 from rosmo/libplatform-x64

Check lib64 dir for libplatform as well.
This commit is contained in:
Stefan Siegl 2015-08-12 18:59:40 +02:00
commit 94fb367b15

View File

@ -145,8 +145,12 @@ AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <v8-debug.h>]],
AC_MSG_CHECKING([for $static_link_extra_file]) AC_MSG_CHECKING([for $static_link_extra_file])
for i in $PHP_V8JS $SEARCH_PATH ; do for i in $PHP_V8JS $SEARCH_PATH ; do
if test -r $i/lib64/$static_link_extra_file; then
static_link_dir=$i/lib64
AC_MSG_RESULT(found in $i)
fi
if test -r $i/lib/$static_link_extra_file; then if test -r $i/lib/$static_link_extra_file; then
static_link_dir=$i static_link_dir=$i/lib
AC_MSG_RESULT(found in $i) AC_MSG_RESULT(found in $i)
fi fi
done done
@ -156,7 +160,7 @@ AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <v8-debug.h>]],
AC_MSG_ERROR([Please provide $static_link_extra_file next to the libv8.so, see README.md for details]) AC_MSG_ERROR([Please provide $static_link_extra_file next to the libv8.so, see README.md for details])
fi fi
LDFLAGS="$LDFLAGS $static_link_dir/lib/$static_link_extra_file" LDFLAGS="$LDFLAGS $static_link_dir/$static_link_extra_file"
done done
fi fi