add support for ARM builds
ledbit opened this issue · comments
Ledion Bitincka commented
Some resources:
https://chrislea.com/2018/08/20/cross-compiling-node-js-for-arm-on-ubuntu/
Containers for cross-compiling (manually setting up the env is a royal PITA)
https://github.com/dockcross/dockcross
When compiling node there are a set of binaries that are needed to be built and ran on the host and thus should not be cross-compiled. The following command seems to do the right thing (See nodejs/node#24317)
ARCH=arm64 DESTCPU=arm CC_host=gcc CXX_host=g++ ./configure --without-snapshot --dest-cpu=arm64 --cross-compiling --dest-os=linux --with-arm-float-abi=hard --with-arm-fpu=neon
Cross-compile instructions for raspberry pi