diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-03-22 12:16:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-22 12:16:25 +0100 |
commit | d0e9f28f87d4fc9e7ed8f465709db89a03b9376b (patch) | |
tree | 9e7aab7f058e1bc64897c03e01c7e760cdca2cb1 | |
parent | 095f97100f9a5e5425eaf794016c57ecf17506a3 (diff) | |
parent | 8961dd345b0673fca40a41f8d3116b2306de3425 (diff) | |
download | podman-d0e9f28f87d4fc9e7ed8f465709db89a03b9376b.tar.gz podman-d0e9f28f87d4fc9e7ed8f465709db89a03b9376b.tar.bz2 podman-d0e9f28f87d4fc9e7ed8f465709db89a03b9376b.zip |
Merge pull request #13584 from lsm5/fix-podman-remote-static
Makefile: build podman-remote-static with cgo disabled
-rw-r--r-- | Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -336,7 +336,10 @@ $(SRCBINDIR)/podman$(BINSFX): $(SRCBINDIR) .gopathok $(SOURCES) go.mod go.sum -o $@ ./cmd/podman $(SRCBINDIR)/podman-remote-static: $(SRCBINDIR) .gopathok $(SOURCES) go.mod go.sum - $(GOCMD) build \ + CGO_ENABLED=0 \ + GOOS=$(GOOS) \ + GOARCH=$(GOARCH) \ + $(GO) build \ $(BUILDFLAGS) \ $(GO_LDFLAGS) '$(LDFLAGS_PODMAN_STATIC)' \ -tags "${REMOTETAGS}" \ |