make linux amd64 binaries static again.

* regression caused by mitchellh/gox#49
* pass CGO_ENABLED=0
This commit is contained in:
Gabi Davar 2016-06-10 16:23:11 +03:00
parent 48286ca970
commit 33b3206ead
1 changed files with 3 additions and 0 deletions

View File

@ -35,6 +35,9 @@ if ! which gox > /dev/null; then
go get -u github.com/mitchellh/gox go get -u github.com/mitchellh/gox
fi fi
# instruct gox to build statically linked binaries
export CGO_ENABLED=0
LD_FLAGS="-X main.GitCommit=${GIT_COMMIT}${GIT_DIRTY}" LD_FLAGS="-X main.GitCommit=${GIT_COMMIT}${GIT_DIRTY}"
# In relase mode we don't want debug information in the binary # In relase mode we don't want debug information in the binary
if [[ -n "${TF_RELEASE}" ]]; then if [[ -n "${TF_RELEASE}" ]]; then