summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLokesh Mandvekar <lsm5@fedoraproject.org>2022-03-21 14:59:25 -0400
committerLokesh Mandvekar <lsm5@fedoraproject.org>2022-03-21 16:20:00 -0400
commit8961dd345b0673fca40a41f8d3116b2306de3425 (patch)
tree37c4457b47aadd635e87cbdac938276abce2b386
parente034db16bf68c06c1ecf63addd033fcbd83090e3 (diff)
downloadpodman-8961dd345b0673fca40a41f8d3116b2306de3425.tar.gz
podman-8961dd345b0673fca40a41f8d3116b2306de3425.tar.bz2
podman-8961dd345b0673fca40a41f8d3116b2306de3425.zip
Makefile: build podman-remote-static with cgo disabled
Resolves: #13557 [NO NEW TESTS NEEDED] Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
-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}" \