Skip to content

Commit 511101a

Browse files
authored
Merge pull request hashicorp#7107 from mindw/static_linux_amd64_bin
make linux amd64 binaries static again.
2 parents d175b04 + 33b3206 commit 511101a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

scripts/build.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ if ! which gox > /dev/null; then
3535
go get -u github.com/mitchellh/gox
3636
fi
3737

38+
# instruct gox to build statically linked binaries
39+
export CGO_ENABLED=0
40+
3841
LD_FLAGS="-X main.GitCommit=${GIT_COMMIT}${GIT_DIRTY}"
3942
# In relase mode we don't want debug information in the binary
4043
if [[ -n "${TF_RELEASE}" ]]; then

0 commit comments

Comments
 (0)