This is a very old gist - it may not work nor be correct anymore. Use everything at your own risk. See http://n8.io/cross-compiling-nodejs-v0.8/ for something slightly more up-to-date.
OpenSSL has been problematic in the past, use --without-ssl
first to determine if it's a problem with node or OpenSSL.