-
-
Save rphillips/6a5262e4a423d9a0d999 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/deps/luajit.gyp b/deps/luajit.gyp | |
index 254c665..a6c464b 100644 | |
--- a/deps/luajit.gyp | |
+++ b/deps/luajit.gyp | |
@@ -59,7 +59,7 @@ | |
'target_name': 'luajit', | |
'type': 'executable', | |
'dependencies': [ | |
- 'buildvm', | |
+ 'buildvm#host', | |
'libluajit', | |
'luajit-datafiles', | |
], | |
@@ -95,7 +95,7 @@ | |
{ 'type': 'static_library' } ], | |
], | |
'dependencies': [ | |
- 'buildvm', | |
+ 'buildvm#host', | |
], | |
'variables': { | |
'lj_sources': [ | |
@@ -251,6 +251,7 @@ | |
{ | |
'target_name': 'minilua', | |
'type': 'executable', | |
+ 'toolsets': ['host'], | |
'sources': [ | |
'luajit/src/host/minilua.c', | |
], | |
@@ -262,8 +263,9 @@ | |
{ | |
'target_name': 'buildvm', | |
'type': 'executable', | |
+ 'toolsets': ['host'], | |
'dependencies': [ | |
- 'minilua', | |
+ 'minilua#host', | |
], | |
'sources': [ | |
'luajit/src/host/buildvm.c', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
OPENWRT=~/OpenWrt-Toolchain-ar71xx-for-mips_r2-gcc-4.6-linaro_uClibc-0.9.33.2 | |
TOOLCHAIN=toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2 | |
TOOLCHAIN_PREFIX=mips-openwrt-linux-uclibc- | |
export PATH=${OPENWRT}/${TOOLCHAIN}/bin:${OPENWRT}/${TOOLCHAIN}/mips-openwrt-linux-uclibc:$PATH | |
export CC="${TOOLCHAIN_PREFIX}gcc.bin" | |
export CPP="${TOOLCHAIN_PREFIX}gcc -E" | |
export STRIP="${TOOLCHAIN_PREFIX}strip" | |
export OBJCOPY="${TOOLCHAIN_PREFIX}objcopy" | |
export AR="${TOOLCHAIN_PREFIX}ar" | |
export RANLIB="${TOOLCHAIN_PREFIX}ranlib" | |
export LD="${TOOLCHAIN_PREFIX}ld" | |
export LANG="en_US.UTF-8" | |
export OBJDUMP="${TOOLCHAIN_PREFIX}objdump" | |
export NM="${TOOLCHAIN_PREFIX}nm" | |
export AS="${TOOLCHAIN_PREFIX}as" | |
export STAGING_DIR=/tmp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment