Permalink
Browse files

update factorial example README again!

  • Loading branch information...
1 parent a00df26 commit 1fc6f04b640f8d9360f4c606c2c3d3ce77b4aee9 @TooTallNate TooTallNate committed May 14, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 example/factorial/README
View
@@ -1,7 +1,11 @@
-On compile `factorial.dylib` on OS X:
+To compile `libfactorial.dylib` on OS X:
$ gcc -dynamiclib -undefined suppress -flat_namespace factorial.c -o libfactorial.dylib
+To compile `libfactorial.so` on Linux/Solaris/etc.:
+
+ $ gcc -shared -fpic factorial.c -o libfactorial.so
+
To run the example:
$ node factorial.js 35

0 comments on commit 1fc6f04

Please sign in to comment.