Skip to content

Commit

Permalink
Merge pull request #13584 from lsm5/fix-podman-remote-static
Browse files Browse the repository at this point in the history
Makefile: build podman-remote-static with cgo disabled
  • Loading branch information
openshift-merge-robot authored Mar 22, 2022
2 parents 095f971 + 8961dd3 commit d0e9f28
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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}" \
Expand Down

0 comments on commit d0e9f28

Please sign in to comment.