Permalink
Browse files

README: Update manual compilation instructions.

  • Loading branch information...
1 parent 29b8c8c commit 15051b3bfbeecbbbcbe505b2602a4be43cf6ccf8 @TooTallNate TooTallNate committed Feb 11, 2012
Showing with 14 additions and 2 deletions.
  1. +14 −2 README.md
View
@@ -38,11 +38,23 @@ Most popular operating systems have a pre-compiled binary that comes along with
# SOURCE INSTALL / MANUAL COMPILATION
+To compile from source it's easiest to use
+[`node-gyp`](https://github.com/TooTallNate/node-gyp):
+
+``` bash
+$ npm install -g node-gyp
+```
+
+Now you can compile `node-ffi`:
+
``` bash
$ git clone git://github.com/rbranson/node-ffi.git
$ cd node-ffi
-$ "$NODE_SOURCE/tools/gyp_addon" -f make
-$ make BUILDTYPE=Release
+$ pushd deps/libffi
+$ ./configure --enable-static --disable-shared && make
+$ popd
+$ node-gyp configure
+$ node-gyp build
```
Note that the `NODE_SOURCE` variable needs to be set to the root dir of the node source tree.

0 comments on commit 15051b3

Please sign in to comment.