summaryrefslogtreecommitdiff
path: root/data/node/make.sh
diff options
context:
space:
mode:
authorMCApollo <34170230+MCApollo@users.noreply.github.com>2019-05-22 16:09:11 +0000
committerMCApollo <34170230+MCApollo@users.noreply.github.com>2019-05-22 16:09:11 +0000
commit8f4270163ac8cf716c892216b4164f89b1cbca57 (patch)
tree5516c2e64d8580803cc05f1c18bd123dfa55dc45 /data/node/make.sh
parent9018a0c80768234d922adefc60fe5ab05d55498b (diff)
WIP 2
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