aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLokesh Mandvekar <lsm5@fedoraproject.org>2022-03-21 14:59:25 -0400
committerMatthew Heon <mheon@redhat.com>2022-03-30 15:36:05 -0400
commit116a9ef02fd8470bb7e7428cd07a51d4fed2a1c9 (patch)
treeee5f4416fbd7dcd8d9aab351ba7d8b323538673c /Makefile
parent9a3f3db6673a305181f63ab143fdf2b860097d15 (diff)
downloadpodman-116a9ef02fd8470bb7e7428cd07a51d4fed2a1c9.tar.gz
podman-116a9ef02fd8470bb7e7428cd07a51d4fed2a1c9.tar.bz2
podman-116a9ef02fd8470bb7e7428cd07a51d4fed2a1c9.zip
Makefile: build podman-remote-static with cgo disabled
Resolves: #13557 [NO NEW TESTS NEEDED] Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 7f7271bd6..99a4e6f1e 100644
--- a/Makefile
+++ b/Makefile
@@ -335,7 +335,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}" \