diff options
Diffstat (limited to 'data/node/make.sh')
-rw-r--r-- | data/node/make.sh | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/data/node/make.sh b/data/node/make.sh index da11ae85a..a7c375eaf 100644 --- a/data/node/make.sh +++ b/data/node/make.sh @@ -24,8 +24,13 @@ 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/') 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 +./configure --prefix="${PKG_TAPF}" --without-snapshot --cross-compiling --dest-os=ios --dest-cpu=arm64 --without-intl --shared-zlib --shared-cares --shared-openssl --shared -# TODO: Fix tool/install.py and the Makefile -make BUILDTYPE=Release -j2 # Don't use pkg:make, CC_host gets overwritten -make BUILDTYPE=Release install DESTDIR="${PKG_DEST}" +# Don't use pkg:make, CC_host gets overwritten +make BUILDTYPE=Release DESTCPU=arm64 install DESTDIR="${PKG_DEST}" + +# TODO: Fix tool/install.py and the Makefile +if [[ ! -x "${PKG_TAPF}"/bin/node ]]; then + pkg: mkdir -p "${PKG_TAPF}"/bin + cp out/Release/node "${PKG_DEST}"/"${PKG_TAPF}"/bin +fi |