Skip to content

Instantly share code, notes, and snippets.

@kofj
Created January 26, 2015 03:17
Show Gist options
  • Save kofj/014b34aedb935f8432ab to your computer and use it in GitHub Desktop.
Save kofj/014b34aedb935f8432ab to your computer and use it in GitHub Desktop.
# This script will build cross lib of go On you Mac.
#!/bin/bash
# This script will build cross lib of go On you Mac.
cd /usr/local/go/src
sudo CGO_ENABLED=0 GOOS=linux GOARCH=amd64 ./make.bash
sudo CGO_ENABLED=0 GOOS=linux GOARCH=386 ./make.bash
sudo CGO_ENABLED=0 GOOS=windows GOARCH=amd64 ./make.bash
sudo CGO_ENABLED=0 GOOS=windows GOARCH=386 ./make.bash
sudo CGO_ENABLED=0 GOOS=freebsd GOARCH=amd64 ./make.bash
sudo CGO_ENABLED=0 GOOS=freebsd GOARCH=386 ./make.bash
sudo CGO_ENABLED=0 GOOS=linux GOARCH=arm GOARM=5 ./make.bash
sudo CGO_ENABLED=0 GOOS=linux GOARCH=arm GOARM=6 ./make.bash
sudo CGO_ENABLED=0 GOOS=darwin GOARCH=386 ./make.bash
sudo CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 ./make.bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment