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.sh16
1 files changed, 8 insertions, 8 deletions
diff --git a/data/node/make.sh b/data/node/make.sh
index 91dc4fe9a..da11ae85a 100644
--- a/data/node/make.sh
+++ b/data/node/make.sh
@@ -4,10 +4,12 @@ export CC="${PKG_TARG}-gcc"
export CXX="${PKG_TARG}-g++"
export LD="${PKG_TARG}-ld"
export AR="${PKG_TARG}-ar"
+export RANLIB="${PKG_TARG}-ranlib"
export AS="${PKG_TARG}-as"
-export LINK="${CC}"
+export LINK="${CXX}"
export RANLIB="${PKG_TARG}-ranlib"
export SDKROOT="${PKG_ROOT}"
+export LDFLAGS="-undefined dynamic_lookup" # libnode needs this- the binary will have the rest of the symbols.
export CC_host="${HOSTCC:-clang}"
export CXX_host="${HOSTCXX:-clang++}"
@@ -18,14 +20,12 @@ export CC_target="${CC}"
export CXX_target="${CXX}"
export LINK_target="${CXX}" # On purpose, see out/Makefile
export AR_target="${AR}"
-
+export LDFLAGS_target="${LDFLAGS}"
GYP_CROSSCOMPILE=1 \
-GYP_DEFINES="v8_enable_inspector=1 target_arch=arm64 v8_target_arch=arm64 host_os=$(uname -s | sed -e 's/Linux/linux/;s/Darwin/mac/')" \
-./configure --prefix="${PKG_TAPF}" --without-snapshot --cross-compiling --dest-os=ios --dest-cpu=arm64 --without-intl --without-npm --shared-zlib --shared-cares --shared-openssl --enable-static # --openssl-no-asm --shared
+GYP_DEFINES="v8_enable_inspector=1 target_arch=arm64 v8_target_arch=arm64 host_os=$(uname -s | sed -e 's/Linux/linux/;s/Darwin/mac/') node_v8_options='--jitless'" \
+./configure --prefix="${PKG_TAPF}" --without-snapshot --cross-compiling --dest-os=ios --dest-cpu=arm64 --without-intl --without-npm --shared-zlib --shared-cares --shared-openssl --shared
# TODO: Fix tool/install.py and the Makefile
-make -j2
-make install DESTDIR="${PKG_DEST}"
-
-cp Release/node ${PKG_DEST}/usr/bin || :
+make BUILDTYPE=Release -j2 # Don't use pkg:make, CC_host gets overwritten
+make BUILDTYPE=Release install DESTDIR="${PKG_DEST}"