joyent/node — pull request #2829 by TooTallNate (2012-02-26 03:08:44+00:00)
Title: Solaris build fixes

First commit is to not use `-pthread` on Solaris since it gives an error:

```
cc: unrecognized option `-pthread'
```

Second commit fixes building addons with `gyp_addon`. I was initially getting like this one:

```
ld: fatal: relocations remain against allocatable but non-writable sections
```

So I applied the [suggested fix from this mailing list entry](http://curl.haxx.se/mail/lib-2002-01/0092.html) and it worked well.