Skip to content

Instantly share code, notes, and snippets.

@bjyoungblood
Created December 14, 2014 22:06
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save bjyoungblood/b8eab82510a7c257b724 to your computer and use it in GitHub Desktop.
Save bjyoungblood/b8eab82510a7c257b724 to your computer and use it in GitHub Desktop.
Cross-compile Node.JS for ARM
#!/usr/bin/fish
set -x AR arm-linux-gnueabihf-ar
set -x CC arm-linux-gnueabihf-gcc
set -x CXX arm-linux-gnueabihf-g++
set -x LINK arm-linux-gnueabihf-g++
./configure --without-snapshot --dest-cpu=arm --dest-os=linux --prefix=/usr/local
make -j 2
make install DESTDIR=/usr/local/src/raspberry/node/build
cd build; and fpm -s dir -t deb -n nodejs -v 0.10.33 -a armhf -p nodejs-0.10.33_armhf.deb -C . ./usr/local/bin ./usr/local/lib
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment