diff options
author | Martin Polden <mpolden@mpolden.no> | 2022-03-25 10:50:01 +0100 |
---|---|---|
committer | Martin Polden <mpolden@mpolden.no> | 2022-03-25 11:00:11 +0100 |
commit | 03b1d289843a9707176ca833f8c8a3afe12ce7c6 (patch) | |
tree | 4c140493d14c52bac47f07bb9def9c9ee45f2658 /client | |
parent | d670aad5992c35f8b5e3bf9e6666319eccd93ed3 (diff) |
Always link vespa cli statically
Diffstat (limited to 'client')
-rw-r--r-- | client/go/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/go/Makefile b/client/go/Makefile index 653ac381d6f..0175d5d7aad 100644 --- a/client/go/Makefile +++ b/client/go/Makefile @@ -85,7 +85,7 @@ $(DIST_TARGETS): DIST_NAME=vespa-cli_$(VERSION)_$(GOOS)_$(GOARCH) $(DIST_TARGETS): dist-version ci manpages $(DIST_TARGETS): mkdir -p $(DIST)/$(DIST_NAME)/bin - env GOOS=$(GOOS) GOARCH=$(GOARCH) go build -o $(DIST)/$(DIST_NAME)/bin $(GO_FLAGS) ./... + env CGO_ENABLED=0 GOOS=$(GOOS) GOARCH=$(GOARCH) go build -o $(DIST)/$(DIST_NAME)/bin $(GO_FLAGS) ./... cp -a $(GIT_ROOT)/LICENSE $(DIST)/$(DIST_NAME) if [ "$(GOOS)" = "windows" ]; then \ cd $(DIST) && zip -r $(DIST)/$(DIST_NAME).zip $(DIST_NAME); \ |