Skip to content

Commit

Permalink
enable static build releases with CGO_ENABLED=0
Browse files Browse the repository at this point in the history
Also removing darwin build, since we do brew install.

Removing solaris since it doesn't build anymore.

Fixes #1933
  • Loading branch information
harshavardhana committed Dec 22, 2016
1 parent 4a96d65 commit 8a60239
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions buildscripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ _init() {
fi

# List of supported architectures
SUPPORTED_OSARCH='linux/386 linux/amd64 linux/arm windows/386 windows/amd64 darwin/amd64 solaris/amd64 freebsd/amd64'
SUPPORTED_OSARCH='linux/386 linux/amd64 linux/arm windows/386 windows/amd64 freebsd/amd64'

## System binaries
CP=`which cp`
Expand All @@ -46,8 +46,8 @@ go_build() {
# Release shasum name
release_shasum="$release_str/$os-$arch/$(basename $package).shasum"

# Go build to build the binary.
GOOS=$os GOARCH=$arch go build --ldflags "${LDFLAGS}" -o $release_bin
# Using `go build` to build the binary.
CGO_ENABLED=0 GOOS=$os GOARCH=$arch go build --ldflags "${LDFLAGS}" -o $release_bin

# Create copy
if [ $os == "windows" ]; then
Expand Down

0 comments on commit 8a60239

Please sign in to comment.