diff options
author | Lokesh Mandvekar <lsm5@fedoraproject.org> | 2022-03-21 14:59:25 -0400 |
---|---|---|
committer | Lokesh Mandvekar <lsm5@fedoraproject.org> | 2022-03-21 16:20:00 -0400 |
commit | 8961dd345b0673fca40a41f8d3116b2306de3425 (patch) | |
tree | 37c4457b47aadd635e87cbdac938276abce2b386 | |
parent | e034db16bf68c06c1ecf63addd033fcbd83090e3 (diff) | |
download | podman-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-- | 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}" \ |