From 33b3206ead4b9ce3c5094c7668e5c6e2aa333aa4 Mon Sep 17 00:00:00 2001 From: Gabi Davar Date: Fri, 10 Jun 2016 16:23:11 +0300 Subject: [PATCH] make linux amd64 binaries static again. * regression caused by mitchellh/gox#49 * pass CGO_ENABLED=0 --- scripts/build.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/build.sh b/scripts/build.sh index fbf4454a0..e1d89587e 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -35,6 +35,9 @@ if ! which gox > /dev/null; then go get -u github.com/mitchellh/gox fi +# instruct gox to build statically linked binaries +export CGO_ENABLED=0 + LD_FLAGS="-X main.GitCommit=${GIT_COMMIT}${GIT_DIRTY}" # In relase mode we don't want debug information in the binary if [[ -n "${TF_RELEASE}" ]]; then