From 3633cd53e8f118ff4ba0673a7d2924945b596f64 Mon Sep 17 00:00:00 2001 From: Paul Holzinger Date: Tue, 2 Sep 2025 14:11:00 +0200 Subject: [PATCH] Revert "Remove bin/podman.cross Make target" This reverts commit c45b27ffb094cc09e88bf9dd9dcebfacc80e574f. This commit was just wrong, local-cross depends on this target as it calls a target like "bin/podman.cross.linux.amd64". Without this it is just broken as there is no matching target. $ make bin/podman.cross.linux.amd64 make: *** No rule to make target 'bin/podman.cross.linux.amd64'. Stop. Signed-off-by: Paul Holzinger --- Makefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Makefile b/Makefile index 2e0558a2bb..db70d9e5a3 100644 --- a/Makefile +++ b/Makefile @@ -481,6 +481,18 @@ podman-testing: bin/podman-testing generate-bindings: .install.golangci-lint $(GOCMD) generate ./pkg/bindings/... ; +# DO NOT USE: use local-cross instead +bin/podman.cross.%: + TARGET="$*"; \ + GOOS="$${TARGET%%.*}"; \ + GOARCH="$${TARGET##*.}"; \ + CGO_ENABLED=0 \ + $(GO) build \ + $(BUILDFLAGS) \ + $(GO_LDFLAGS) '$(LDFLAGS_PODMAN)' \ + -tags '$(BUILDTAGS_CROSS)' \ + -o "$@" ./cmd/podman + .PHONY: local-cross local-cross: $(CROSS_BUILD_TARGETS) ## Cross compile podman binary for multiple architectures