summaryrefslogtreecommitdiff
path: root/data/node/make.sh
blob: c2d288b3f755bbdca4edfd276404fb3c6f9422f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
pkg:setup

export CC="${PKG_TARG}-gcc"
export CXX="${PKG_TARG}-g++"
export LD="${PKG_TARG}-ld"
export AR="${PKG_TARG}-ar"
export AS="${PKG_TARG}-as"
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_target="${CC}"
export CXX_target="${CXX}"
export LINK_target="${CXX}"  # On purpose, see out/Makefile
export AR_target="${AR}"

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