0
0
mirror of https://github.com/phpv8/v8js.git synced 2024-12-22 17:31:53 +00:00

Put additional libs after the main libs

This commit is contained in:
Jan-E 2016-11-17 11:18:01 +01:00
parent ebb9a0bc70
commit ac5ba6d68e

View File

@ -42,23 +42,6 @@ if (PHP_V8JS != "no") {
var v8api = v8major + v8js_zeroPad(v8minor, 3) + v8js_zeroPad(v8build, 3);
var v8ver = v8major + "." + v8minor + "." + v8build + "." + v8patch;
if (v8api >= 5003000) {
// For SymLoadModule64 e.a.
// #include <dbghelp.h> in src\base\win32-headers.h
// Adds dependency on dbghelp.dll
CHECK_LIB("dbghelp.lib", "v8js");
}
if (v8api >= 5004000) {
// For PathRemoveFileSpecW
/*
v8_libbase.lib(stack_trace_win.obj) :
error LNK2019: unresolved external symbol
__imp_PathRemoveFileSpecW referenced in function "bool __cdecl
v8::base::debug::`anonymous namespace'::InitializeSymbols(void)"
(?InitializeSymbols@?A0x38ef2142@debug@base@v8@@YA_NXZ)
*/
CHECK_LIB("Shlwapi.lib", "v8js");
}
if (v8api >= 5006000) {
CHECK_LIB("v8.dll.lib", "v8js");
CHECK_LIB("v8_libplatform.dll.lib", "v8js");
@ -74,6 +57,16 @@ if (PHP_V8JS != "no") {
CHECK_LIB("v8_libplatform.lib", "v8js");
CHECK_LIB("v8_libbase.lib", "v8js");
}
if (v8api >= 5003000) {
// For SymLoadModule64 e.a.
// #include <dbghelp.h> in src\base\win32-headers.h
// Adds dependency on dbghelp.dll
CHECK_LIB("dbghelp.lib", "v8js");
}
if (v8api >= 5004000) {
// For PathRemoveFileSpecW in v8_libbase.lib(stack_trace_win)
CHECK_LIB("Shlwapi.lib", "v8js");
}
AC_DEFINE("PHP_V8_API_VERSION", v8api, "", false);
AC_DEFINE("PHP_V8_VERSION", v8ver, "", true);