summaryrefslogtreecommitdiff
path: root/data/node/make.sh
blob: fc096737d6ca04aef8c14fd26055aa224f523200 (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
26
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="${HOSTCC:-clang}"
export CXX_host="${HOSTCXX:-clang++}"
export LINK_host="${CXX_host}"
export AR_host="${HOSTAR:-ar}"

export CC_target="${CC}"
export CXX_target="${CXX}"
export LINK_target="${CXX}"  # On purpose, see out/Makefile
export AR_target="${AR}"

export GYP_CROSSCOMPILE=1
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 --shared-cares --shared-openssl # --openssl-no-asm
make