mirror of
https://github.com/nodejs/node.git
synced 2024-11-29 15:06:33 +01:00
ecb840c14a
The introduction of libuv 1.6.0 broke the android-configure script by not specifying the correct platform. uv_os_homedir uses getpwuid_r which was not made public until API level 21 on android. The regression was introduced in a804026...b5cd2f0 PR-URL: https://github.com/nodejs/node/pull/2501 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
19 lines
534 B
Bash
Executable File
19 lines
534 B
Bash
Executable File
#!/bin/bash
|
|
|
|
export TOOLCHAIN=$PWD/android-toolchain
|
|
mkdir -p $TOOLCHAIN
|
|
$1/build/tools/make-standalone-toolchain.sh \
|
|
--toolchain=arm-linux-androideabi-4.9 \
|
|
--arch=arm \
|
|
--install-dir=$TOOLCHAIN \
|
|
--platform=android-21
|
|
export PATH=$TOOLCHAIN/bin:$PATH
|
|
export AR=$TOOLCHAIN/bin/arm-linux-androideabi-ar
|
|
export CC=$TOOLCHAIN/bin/arm-linux-androideabi-gcc
|
|
export CXX=$TOOLCHAIN/bin/arm-linux-androideabi-g++
|
|
export LINK=$TOOLCHAIN/bin/arm-linux-androideabi-g++
|
|
|
|
./configure \
|
|
--dest-cpu=arm \
|
|
--dest-os=android
|