nodejs: add 0.12 version of node

add node-js 0.12 and a few gyp bindings

Signed-off-by: John Crispin <blogic@openwrt.org>
This commit is contained in:
John Crispin
2015-08-02 08:26:39 +02:00
parent 756a24c3d4
commit 4fb1eda08e
12 changed files with 3171 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
--- a/deps/v8/build/toolchain.gypi
+++ b/deps/v8/build/toolchain.gypi
@@ -50,10 +50,10 @@
'arm_test_noprobe%': 'off',
# Similar to vfp but on MIPS.
- 'v8_can_use_fpu_instructions%': 'true',
+ 'v8_can_use_fpu_instructions%': 'false',
# Similar to the ARM hard float ABI but on MIPS.
- 'v8_use_mips_abi_hardfloat%': 'true',
+ 'v8_use_mips_abi_hardfloat%': 'false',
# Default arch variant for MIPS.
'mips_arch_variant%': 'r2',
+10
View File
@@ -0,0 +1,10 @@
--- a/deps/uv/src/unix/getaddrinfo.c
+++ b/deps/uv/src/unix/getaddrinfo.c
@@ -99,6 +99,7 @@
int err;
req = container_of(w, uv_getaddrinfo_t, work_req);
+ req->hints->ai_flags &= ~AI_V4MAPPED;
err = getaddrinfo(req->hostname, req->service, req->hints, &req->addrinfo);
req->retcode = uv__getaddrinfo_translate_error(err);
}
+12
View File
@@ -0,0 +1,12 @@
--- a/lib/module.js
+++ b/lib/module.js
@@ -512,7 +512,8 @@
var homeDir = process.env.HOME;
}
- var paths = [path.resolve(process.execPath, '..', '..', 'lib', 'node')];
+ var paths = [path.resolve(process.execPath, '..', '..', 'lib', 'node'),
+ path.resolve(process.execPath, '..', '..', 'lib', 'node_modules')];
if (homeDir) {
paths.unshift(path.resolve(homeDir, '.node_libraries'));