Skip to content

Instantly share code, notes, and snippets.

@oker1
Created October 7, 2013 07:57
Show Gist options
  • Save oker1/6864060 to your computer and use it in GitHub Desktop.
Save oker1/6864060 to your computer and use it in GitHub Desktop.
go crosscompile linux/amd64
hg clone -u release https://code.google.com/p/go
cd go/src
./all.bash
export GOROOT=$HOME/go
export PATH=$GOROOT/bin:$PATH
cd $GOROOT/src
GOOS=linux GOARCH=amd64 ./make.bash --no-clean 2>&1
GOOS=linux GOARCH=amd64 go ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment