雪夜读书
Wednesday, January 04, 2012
  compile node.js on my DNS-320

The appliance is running chrooted squeeze. To build node, simply set several environments.




$ export TMPDIR=/tmp
$ export CC='gcc -march=armv5t -mfloat-abi=softfp -fno-tree-sink -O0'
$ export CCFLAGS='-march=armv5t -mfloat-abi=softfp -fno-tree-sink -O0'
$ export CXX='g++ -march=armv5t -mfloat-abi=softfp -fno-tree-sink -O0'
$ export GCC='-march=armv5t -mfloat-abi=softfp -fno-tree-sink -O0'
$ ./configure --prefix=/home/jhuang/.local/ --without-snapshot


And voila! It takes quite long to finish, but you know patience is meant to be used this way.

 

Archives
September 2006 / October 2006 / November 2006 / October 2011 / January 2012 / June 2013 / December 2013 / October 2014 / June 2015 /


Powered by Blogger

Subscribe to
Posts [Atom]