From 7b764d5c5ba901da03bad0887b6992281043f70b Mon Sep 17 00:00:00 2001 From: JL2210 Date: Mon, 5 Nov 2018 10:32:51 -0500 Subject: [PATCH] export npm_config_target_arch instead of npm_config_arch on arm64 --- build.sh | 2 ++ install_deps.sh | 1 + 2 files changed, 3 insertions(+) diff --git a/build.sh b/build.sh index 09c2d5a..bedb1b5 100755 --- a/build.sh +++ b/build.sh @@ -6,10 +6,12 @@ if [[ "$SHOULD_BUILD" == "yes" ]]; then if [[ "$BUILDARCH" == "ia32" ]]; then export npm_config_arch=ia32 + export npm_config_target_arch=ia32 fi if [[ "$BUILDARCH" == "arm64" ]]; then export npm_config_arch=arm64 + export npm_config_target_arch=arm64 fi ../update_settings.sh diff --git a/install_deps.sh b/install_deps.sh index fb9ac08..6fcac54 100755 --- a/install_deps.sh +++ b/install_deps.sh @@ -17,6 +17,7 @@ else export CC_host=/usr/bin/gcc export CXX_host=/usr/bin/g++ elif [[ $BUILDARCH == "arm64" ]]; then + echo "deb http://ports.ubuntu.com/ubuntu-ports/ trusty main" | sudo tee -a /etc/apt/sources.list.d/arm64.list >/dev/null sudo dpkg --add-architecture arm64 sudo apt-get update sudo apt-get install libc6-dev-arm64-cross gcc-aarch64-linux-gnu g++-aarch64-linux-gnu