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
  • Save zulhfreelancer/34ab1e45ccd7e74e41911a6f701b4baf to your computer and use it in GitHub Desktop.
Save zulhfreelancer/34ab1e45ccd7e74e41911a6f701b4baf to your computer and use it in GitHub Desktop.

Revisions

  1. @dlsniper dlsniper created this gist Oct 13, 2017.
    5 changes: 5 additions & 0 deletions cross-compile-go.bash
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    cd ~
    git clone [email protected]:golang/go.git gotip
    cd gotip/src
    export GOROOT_BOOTSTRAP=/usr/local/go
    env GOOS=linux GOARCH=arm GOARM=7 ./make.bash