mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-10-17 11:27:33 +00:00
Revert "Remove bin/podman.cross Make target"
This reverts commit c45b27ffb0.
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 <pholzing@redhat.com>
This commit is contained in:
parent
6d0b28a5c4
commit
3633cd53e8
1 changed files with 12 additions and 0 deletions
12
Makefile
12
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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue