From 714920512ef61700b5375a6be29bdd5ae42516b7 Mon Sep 17 00:00:00 2001 From: Cedric Staniewski Date: Tue, 16 Apr 2024 00:28:29 +0200 Subject: [PATCH] Makefile: do not hardcode `GOOS` in `podman-remote-static` target Signed-off-by: Cedric Staniewski --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 442e3a99cf..b72d3d68d8 100644 --- a/Makefile +++ b/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)' \