unifios-utilities/podman-update/build/podman.Makefile.UDM-Pro.patch

47 lines
1.7 KiB
Diff
Raw Normal View History

2021-05-25 13:24:54 +00:00
diff --git a/Makefile b/Makefile
2023-03-07 07:01:53 +00:00
--- Makefile
+++ Makefile
@@ -75,9 +75,9 @@
# newer than our target (bin/podman{,-remote}), a rebuild is
# triggered.
SOURCES = $(shell find . -path './.*' -prune -o \( \( -name '*.go' -o -name '*.c' \) -a ! -name '*_test.go' \) -print)
2021-05-25 13:24:54 +00:00
-BUILDTAGS_CROSS ?= containers_image_openpgp exclude_graphdriver_btrfs exclude_graphdriver_devicemapper exclude_graphdriver_overlay
2023-03-07 07:01:53 +00:00
+BUILDTAGS_CROSS ?= containers_image_openpgp exclude_graphdriver_btrfs btrfs_noversion exclude_graphdriver_devicemapper seccomp apparmor libdm_no_deferred_remove
2021-05-25 13:24:54 +00:00
CONTAINER_RUNTIME := $(shell command -v podman 2> /dev/null || echo docker)
OCI_RUNTIME ?= ""
2023-03-07 07:01:53 +00:00
# The 'sort' below is crucial: without it, 'make docs' behaves differently
@@ -141,20 +141,9 @@
GOMD2MAN ?= $(shell command -v go-md2man || echo './test/tools/build/go-md2man')
2021-05-25 13:24:54 +00:00
CROSS_BUILD_TARGETS := \
- bin/podman.cross.linux.amd64 \
- bin/podman.cross.linux.ppc64le \
- bin/podman.cross.linux.arm \
bin/podman.cross.linux.arm64 \
- bin/podman.cross.linux.386 \
- bin/podman.cross.linux.s390x \
- bin/podman.cross.linux.mips \
- bin/podman.cross.linux.mipsle \
- bin/podman.cross.linux.mips64 \
2023-03-07 07:01:53 +00:00
- bin/podman.cross.linux.mips64le \
- bin/podman.cross.freebsd.amd64 \
- bin/podman.cross.freebsd.arm64
2021-05-25 13:24:54 +00:00
# Dereference variable $(1), return value if non-empty, otherwise raise an error.
err_if_empty = $(if $(strip $($(1))),$(strip $($(1))),$(error Required variable $(1) value is undefined, whitespace, or empty))
2023-03-07 07:01:53 +00:00
@@ -419,9 +408,9 @@
bin/podman.cross.%:
2021-05-25 13:24:54 +00:00
TARGET="$*"; \
GOOS="$${TARGET%%.*}"; \
GOARCH="$${TARGET##*.}"; \
- CGO_ENABLED=0 \
2023-03-07 07:01:53 +00:00
+ CGO_ENABLED1 \
2021-05-25 13:24:54 +00:00
$(GO) build \
$(BUILDFLAGS) \
2023-03-07 07:01:53 +00:00
$(GO_LDFLAGS) '$(LDFLAGS_PODMAN)' \
-tags '$(BUILDTAGS_CROSS)' \