mirror of
https://github.com/phpv8/v8js.git
synced 2025-01-03 15:41:55 +00:00
Search libv8_libplatform.a in V8_DIR only
Otherwise config.m4 will find another libv8_libplatform.a (e.g. in /usr/lib) as well ... and then use the wrong one.
This commit is contained in:
parent
4fea8f4fb9
commit
ed8e88e11d
15
config.m4
15
config.m4
@ -145,16 +145,15 @@ int main ()
|
|||||||
for static_link_extra_file in $static_link_extra; do
|
for static_link_extra_file in $static_link_extra; do
|
||||||
AC_MSG_CHECKING([for $static_link_extra_file])
|
AC_MSG_CHECKING([for $static_link_extra_file])
|
||||||
|
|
||||||
for i in $PHP_V8JS $SEARCH_PATH ; do
|
if test -r $V8_DIR/lib64/$static_link_extra_file; then
|
||||||
if test -r $i/lib64/$static_link_extra_file; then
|
static_link_dir=$V8_DIR/lib64
|
||||||
static_link_dir=$i/lib64
|
AC_MSG_RESULT(found in $V8_DIR/lib64)
|
||||||
AC_MSG_RESULT(found in $i)
|
|
||||||
fi
|
fi
|
||||||
if test -r $i/lib/$static_link_extra_file; then
|
|
||||||
static_link_dir=$i/lib
|
if test -r $V8_DIR/lib/$static_link_extra_file; then
|
||||||
AC_MSG_RESULT(found in $i)
|
static_link_dir=$V8_DIR/lib
|
||||||
|
AC_MSG_RESULT(found in $V8_DIR/lib)
|
||||||
fi
|
fi
|
||||||
done
|
|
||||||
|
|
||||||
if test -z "$static_link_dir"; then
|
if test -z "$static_link_dir"; then
|
||||||
AC_MSG_RESULT([not found])
|
AC_MSG_RESULT([not found])
|
||||||
|
Loading…
Reference in New Issue
Block a user