How to cross compile Go with CGO programs for a different OS/Arch
It is possible to compile Go programs for a different OS, even though
go build says otherwise.
- a valid toolchain for the platform/os you're targetting
- Go Tip (works on 1.1 and 1.2rc1 but you might as well be on tip)
golang-crosscompilehelper script https://github.com/davecheney/golang-crosscompile
- the patch provided