MacでGoのクロスコンパイルを出来るようにする
ぐぐると --cross-compile-common
を付けて brew install
しなさいと出るけど引数変わってた。
$ brew install go --cross-compile-common Warning: go: this formula has no --cross-compile-common option so it will be ignored! ==> Downloading https://homebrew.bintray.com/bottles/go-1.8.3.yosemite.bottle.tar.gz ######################################################################## 100.0% ==> Pouring go-1.8.3.yosemite.bottle.tar.gz ==> Using the sandbox ==> Caveats A valid GOPATH is required to use the `go get` command. If $GOPATH is not specified, $HOME/go will be used by default: https://golang.org/doc/code.html#GOPATH You may wish to add the GOROOT-based install location to your PATH: export PATH=$PATH:/usr/local/opt/go/libexec/bin ==> Summary 🍺 /usr/local/Cellar/go/1.8.3: 7,035 files, 282.0MB $ brew install go --with-cc-common Warning: go: this formula has no --with-cc-common option so it will be ignored! ==> Downloading https://homebrew.bintray.com/bottles/go-1.8.3.yosemite.bottle.tar.gz Already downloaded: /Users/gozu/Library/Caches/Homebrew/go-1.8.3.yosemite.bottle.tar.gz ==> Pouring go-1.8.3.yosemite.bottle.tar.gz ==> Using the sandbox ==> Caveats A valid GOPATH is required to use the `go get` command. If $GOPATH is not specified, $HOME/go will be used by default: https://golang.org/doc/code.html#GOPATH You may wish to add the GOROOT-based install location to your PATH: export PATH=$PATH:/usr/local/opt/go/libexec/bin ==> Summary 🍺 /usr/local/Cellar/go/1.8.3: 7,035 files, 282.0MB