Skip to content

Instantly share code, notes, and snippets.

@bearice
Created August 21, 2012 13:50
Show Gist options
  • Save bearice/3415637 to your computer and use it in GitHub Desktop.
Save bearice/3415637 to your computer and use it in GitHub Desktop.
Cross Compile NodeJS 0.8.7 on arm [Kindle] On OSX 10.8
export HOST=arm-kindle-linux-gnueabi
export CC=$HOST-gcc
export CPP=$HOST-g++
export CXX=$HOST-g++
export LD=$HOST-ld
export AS=$HOST-as
export AR=$HOST-ar
export LDFLAGS="-static -static-libgcc -static-libstdc++"
export PATH=$PATH:/Volumes/XTools/arm-kindle-linux-gnueabi/bin
./configure --prefix=$PWD/out_arm --without-snapshot --with-arm-float-abi=softfp --gdb
python tools/gyp_node -f make-linux
make && make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment