Skip to content

Latest commit

 

History

History
57 lines (42 loc) · 2.06 KB

README.md

File metadata and controls

57 lines (42 loc) · 2.06 KB

Evented I/O for V8 javascript.

This is a guide how to compile node.js (v0.8.16-release) for arm architecture and create the node executable to be able to be linked dynamically.

Prerequisites (Unix only):

* Python 2.6 or 2.7
* GNU Make 3.81 or newer
* libexecinfo (FreeBSD and OpenBSD only)

Build using build script (Ubuntu only):

$ mkdir output
$ ./build --dest-cpu=arm --with-pie --prefix=./output
$ file ./output/node
out/Release/node: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked 
(uses shared libs), for GNU/Linux 2.6.15, not stripped

Build own your own:

Get node Source code:

$ git clone git://github.com/joyent/node.git
$ cd node
$ git checkout v0.8.16-release

Set some envirnments for cross compile:

$ export AR=arm-linux-gnueabi-ar
$ export CC=arm-linux-gnueabi-gcc
$ export CXX=arm-linux-gnueabi-g++
$ export LINK=arm-linux-gnueabi-g++

Set patch for making node pie executable

$ patch -p0 < ../patch-for-making-pie-executable.patch

Build node

$ ./configure --without-snapshot --dest-cpu=arm --dest-os=linux
$ make --jobs=8

Resources for Newcomers