Skip to content

Instantly share code, notes, and snippets.

@zulhfreelancer
Forked from dlsniper/cross-compile-go.bash
Created December 24, 2018 16:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zulhfreelancer/34ab1e45ccd7e74e41911a6f701b4baf to your computer and use it in GitHub Desktop.
Save zulhfreelancer/34ab1e45ccd7e74e41911a6f701b4baf to your computer and use it in GitHub Desktop.
Cross compile Go for Raspberry Pi 3
cd ~
git clone git@github.com:golang/go.git gotip
cd gotip/src
export GOROOT_BOOTSTRAP=/usr/local/go
env GOOS=linux GOARCH=arm GOARM=7 ./make.bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment