joyent/node — pull request #2148 by adammw (2011-11-19 16:13:25+00:00)
Title: Allow for cross-OS cross compiles, implement dest-cpu, dest-os options

This is step 1 to cross-compile for Windows on Linux (other patches to uv.gyp and v8.gyp needed for this).
Also, I made it pay respect to dest-cpu and dest-os options.
Hopefully, fixes joyent/node#1736 (not sure, looks to be only once) by setting `want_separate_host_toolset` variable.

Not sure what to do with libz and some other tidbits, see TODOs in the code.