diff options
author | Lokesh Mandvekar <lsm5@fedoraproject.org> | 2022-03-21 14:59:25 -0400 |
---|---|---|
committer | Matthew Heon <mheon@redhat.com> | 2022-03-30 15:36:05 -0400 |
commit | 116a9ef02fd8470bb7e7428cd07a51d4fed2a1c9 (patch) | |
tree | ee5f4416fbd7dcd8d9aab351ba7d8b323538673c /Makefile | |
parent | 9a3f3db6673a305181f63ab143fdf2b860097d15 (diff) | |
download | podman-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-- | Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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}" \ |