Last active
December 10, 2015 23:08
-
-
Save TooTallNate/4507090 to your computer and use it in GitHub Desktop.
Command to cross-compile a "binary tarball" node release for Raspberry Pi.
They're now getting uploaded to the release dist/ dir on nodejs.org/dist
i.e: http://nodejs.org/dist/v0.8.17/
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/env sh | |
export AR=arm-unknown-linux-gnueabi-ar | |
export CC=arm-unknown-linux-gnueabi-gcc | |
export CXX=arm-unknown-linux-gnueabi-g++ | |
export LINK="$CXX" | |
export CFLAGS="-march=armv6j -mfpu=vfp -mfloat-abi=hard" | |
export CXXFLAGS="$CFLAGS" | |
make binary BINARYNAME=node-v`python tools/getnodeversion.py`-linux-arm-pi DESTCPU=arm CONFIG_FLAGS="--dest-os=linux" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment