fix(*): statically link cross builds

closes: #1362
pull/1388/head
Adam Reese 8 years ago
parent 1a7373e584
commit 273e0d3995

@ -27,8 +27,9 @@ build:
# usage: make build-cross dist VERSION=v2.0.0-alpha.3 # usage: make build-cross dist VERSION=v2.0.0-alpha.3
.PHONY: build-cross .PHONY: build-cross
build-cross: LDFLAGS += -extldflags "-static"
build-cross: build-cross:
gox -output="_dist/{{.OS}}-{{.Arch}}/{{.Dir}}" -osarch='$(TARGETS)' $(GOFLAGS) -tags '$(TAGS)' -ldflags '$(LDFLAGS)' k8s.io/helm/cmd/helm CGO_ENABLED=0 gox -output="_dist/{{.OS}}-{{.Arch}}/{{.Dir}}" -osarch='$(TARGETS)' $(GOFLAGS) -tags '$(TAGS)' -ldflags '$(LDFLAGS)' k8s.io/helm/cmd/helm
.PHONY: dist .PHONY: dist
dist: dist:

Loading…
Cancel
Save