Created
December 14, 2014 22:06
-
-
Save bjyoungblood/b8eab82510a7c257b724 to your computer and use it in GitHub Desktop.
Cross-compile Node.JS for ARM
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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