mirror of
https://github.com/containers/podman.git
synced 2025-10-25 02:04:43 +08:00
Makefile: do not hardcode GOOS in podman-remote-static target
Signed-off-by: Cedric Staniewski <cedric@gmx.ca>
This commit is contained in:
2
Makefile
2
Makefile
@ -385,9 +385,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