go build -mod=vendor -gcflags ‘all=-trimpath=/root/podman’ -asmflags ‘all=-trimpath=/root/podman’ -ldflags ‘-X github.com/containers/podman/v2/libpod/define.gitCommit=0243afdce71e98162cf20e3d3eea5bde437c050f -X github.com/containers/podman/v2/libpod/define.buildInfo=1618037848 -X github.com/containers/podman/v2/libpod/config._installPrefix=/usr/local -X github.com/containers/podman/v2/libpod/config._etcDir=/etc ‘ -tags “ selinux systemd exclude_graphdriver_devicemapper seccomp” -o bin/podman ./cmd/podman
或者
make BUILDTAGS=”containers_image_openpgp exclude_graphdriver_btrfs btrfs_noversion selinux exclude_graphdriver_devicemapper seccomp”