summaryrefslogtreecommitdiff
path: root/data/node/make.sh
diff options
context:
space:
mode:
Diffstat (limited to 'data/node/make.sh')
-rw-r--r--data/node/make.sh12
1 files changed, 9 insertions, 3 deletions
diff --git a/data/node/make.sh b/data/node/make.sh
index 6f189509d..c2d288b3f 100644
--- a/data/node/make.sh
+++ b/data/node/make.sh
@@ -1,6 +1,7 @@
pkg:setup
export CC="${PKG_TARG}-gcc"
+export CXX="${PKG_TARG}-g++"
export LD="${PKG_TARG}-ld"
export AR="${PKG_TARG}-ar"
export AS="${PKG_TARG}-as"
@@ -10,10 +11,15 @@ export SDKROOT="${PKG_ROOT}"
export CC_host="gcc"
export CXX_host="g++"
-export LINK_host="gcc"
+export LINK_host="g++"
export AR_host="ar"
-export GYP_DEFINES="target_arch=arm64 v8_target_arch=amr64 host_os=mac OS=ios"
+export CC_target="${CC}"
+export CXX_target="${CXX}"
+export LINK_target="${CXX}" # On purpose, see out/Makefile
+export AR_target="${AR}"
+
+export GYP_DEFINES="target_arch=arm64 v8_target_arch=arm64 host_os=linux target_os=ios OS=ios"
./configure --without-snapshot --dest-os=ios --dest-cpu=arm64 --with-intl=none --shared-zlib --openssl-no-asm
-make
+make -j2