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.sh13
1 files changed, 7 insertions, 6 deletions
diff --git a/data/node/make.sh b/data/node/make.sh
index c2d288b3f..fc096737d 100644
--- a/data/node/make.sh
+++ b/data/node/make.sh
@@ -9,17 +9,18 @@ export LINK="${CC}"
export RANLIB="${PKG_TARG}-ranlib"
export SDKROOT="${PKG_ROOT}"
-export CC_host="gcc"
-export CXX_host="g++"
-export LINK_host="g++"
-export AR_host="ar"
+export CC_host="${HOSTCC:-clang}"
+export CXX_host="${HOSTCXX:-clang++}"
+export LINK_host="${CXX_host}"
+export AR_host="${HOSTAR:-ar}"
export CC_target="${CC}"
export CXX_target="${CXX}"
export LINK_target="${CXX}" # On purpose, see out/Makefile
export AR_target="${AR}"
+export GYP_CROSSCOMPILE=1
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 -j2
+./configure --without-snapshot --dest-os=ios --dest-cpu=arm64 --with-intl=none --shared-zlib --shared-cares --shared-openssl # --openssl-no-asm
+make