summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-03-22 12:16:25 +0100
committerGitHub <noreply@github.com>2022-03-22 12:16:25 +0100
commitd0e9f28f87d4fc9e7ed8f465709db89a03b9376b (patch)
tree9e7aab7f058e1bc64897c03e01c7e760cdca2cb1
parent095f97100f9a5e5425eaf794016c57ecf17506a3 (diff)
parent8961dd345b0673fca40a41f8d3116b2306de3425 (diff)
downloadpodman-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--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 523bb30fb..bef6b4b91 100644
--- a/Makefile
+++ b/Makefile
@@ -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}" \