mirror of
https://github.com/containers/podman.git
synced 2025-07-01 00:01:02 +08:00
Merge pull request #22388 from xduugu/podman-remote-static-goos
Makefile: do not hardcode `GOOS` in `podman-remote-static` target
This commit is contained in:
2
Makefile
2
Makefile
@ -390,9 +390,9 @@ $(SRCBINDIR)/podman$(BINSFX): $(SOURCES) go.mod go.sum | $(SRCBINDIR)
|
||||
-o $@ ./cmd/podman
|
||||
|
||||
$(SRCBINDIR)/podman-remote-static-linux_%: GOARCH = $(patsubst $(SRCBINDIR)/podman-remote-static-linux_%,%,$@)
|
||||
$(SRCBINDIR)/podman-remote-static-linux_%: GOOS = linux
|
||||
$(SRCBINDIR)/podman-remote-static $(SRCBINDIR)/podman-remote-static-linux_amd64 $(SRCBINDIR)/podman-remote-static-linux_arm64: $(SRCBINDIR) $(SOURCES) go.mod go.sum
|
||||
CGO_ENABLED=0 \
|
||||
GOOS=linux \
|
||||
$(GO) build \
|
||||
$(BUILDFLAGS) \
|
||||
$(GO_LDFLAGS) '$(LDFLAGS_PODMAN_STATIC)' \
|
||||
|
Reference in New Issue
Block a user