joyent/node — pull request #2722 by TooTallNate (2012-02-09 03:52:31+00:00)
Title: Use -fPIC for native addons in Linux.

I discussed this with @isaacs in IRC earlier today.

For why, see: https://github.com/brianmcd/contextify/pull/17#issuecomment-3875756

A few things I wasn't sure about (probably questions for @bnoordhuis):

1. Should other platforms get this flag? OS X? Solaris? I think no since `node-gyp` is working fine on OS X, but I've yet to test on Solaris.
2. Should this go in `common.gypi` instead so that node itself gets compiled with this? Again, it doesn't seem necessary to me, but was just double checking.

Thanks!