@@ -55,7 +55,7 @@ BUILDTAGS ?= \
55
55
$(shell hack/btrfs_tag.sh) \
56
56
$(shell hack/systemd_tag.sh) \
57
57
$(shell hack/libsubid_tag.sh) \
58
- seccomp
58
+ $( if $( filter linux, $( GOOS ) ) , seccomp,)
59
59
# allow downstreams to easily add build tags while keeping our defaults
60
60
BUILDTAGS += ${EXTRA_BUILDTAGS}
61
61
# N/B: This value is managed by Renovate, manual changes are
@@ -66,7 +66,7 @@ PYTHON ?= $(shell command -v python3 python|head -n1)
66
66
PKG_MANAGER ?= $(shell command -v dnf yum|head -n1)
67
67
# ~/.local/bin is not in PATH on all systems
68
68
PRE_COMMIT = $(shell command -v bin/venv/bin/pre-commit ~/.local/bin/pre-commit pre-commit | head -n1)
69
- ifeq ($(shell uname -s) ,FreeBSD )
69
+ ifeq ($(NATIVE_GOOS ) ,freebsd )
70
70
SED =gsed
71
71
GREP =ggrep
72
72
MAN_L = mandoc
@@ -231,7 +231,7 @@ default: all
231
231
all : binaries docs
232
232
233
233
.PHONY : binaries
234
- ifeq ($(shell uname -s) ,FreeBSD )
234
+ ifeq ($(GOOS ) ,freebsd )
235
235
binaries : podman podman-remote # # Build podman and podman-remote binaries
236
236
else ifneq (, $(findstring $(GOOS),darwin windows))
237
237
binaries : podman-remote # # Build podman-remote (client) only binaries
@@ -246,7 +246,7 @@ _HLP_TGTS_RX = '^[[:print:]]+:.*?\#\# .*$$'
246
246
_HLP_TGTS_CMD = $(GREP ) -E $(_HLP_TGTS_RX ) $(MAKEFILE_LIST )
247
247
_HLP_TGTS_LEN = $(shell $(call err_if_empty,_HLP_TGTS_CMD) | cut -d : -f 1 | wc -L 2>/dev/null || echo "PARSING_ERROR")
248
248
# Separated condition for Darwin
249
- ifeq ($(shell uname -s )$(_HLP_TGTS_LEN ) ,DarwinPARSING_ERROR )
249
+ ifeq ($(NATIVE_GOOS )$(_HLP_TGTS_LEN ) ,darwinPARSING_ERROR )
250
250
ifneq (,$(wildcard /usr/local/bin/gwc) )
251
251
_HLP_TGTS_LEN = $(shell $(call err_if_empty,_HLP_TGTS_CMD) | cut -d : -f 1 | gwc -L)
252
252
else
@@ -914,7 +914,7 @@ install.bin:
914
914
ln -sf podman $(DESTDIR )$(BINDIR ) /podmansh
915
915
test -z " ${SELINUXOPT} " || chcon --verbose --reference=$(DESTDIR )$(BINDIR ) /podman bin/podman
916
916
install ${SELINUXOPT} -d -m 755 $(DESTDIR )$(LIBEXECPODMAN )
917
- ifneq ($(shell uname -s) ,FreeBSD )
917
+ ifneq ($(NATIVE_GOOS ) ,freebsd )
918
918
install ${SELINUXOPT} -m 755 bin/rootlessport $(DESTDIR)$(LIBEXECPODMAN)/rootlessport
919
919
test -z "${SELINUXOPT}" || chcon --verbose --reference=$(DESTDIR)$(LIBEXECPODMAN)/rootlessport bin/rootlessport
920
920
install ${SELINUXOPT} -m 755 bin/quadlet $(DESTDIR)$(LIBEXECPODMAN)/quadlet
0 commit comments