Commit d631328a authored by Adam Reese's avatar Adam Reese Committed by GitHub
Browse files

Merge pull request #1388 from adamreese/fix/1362-linker

fix(*): statically link cross builds
parents 04218a4d 273e0d39
No related merge requests found
Showing with 2 additions and 1 deletion
+2 -1
...@@ -27,8 +27,9 @@ build: ...@@ -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:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment