From 3c2b87befc98d51f6b03289f89be80da45864744 Mon Sep 17 00:00:00 2001 From: E <79379754+oech3@users.noreply.github.com> Date: Wed, 24 Sep 2025 13:30:27 +0900 Subject: [PATCH] Don't build SELINUX_PROGS if disabled --- GNUmakefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/GNUmakefile b/GNUmakefile index 8e3ae05ca89..dd774aa905a 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -217,8 +217,10 @@ endif ifneq ($(OS),Windows_NT) PROGS := $(PROGS) $(UNIX_PROGS) -# Build the selinux command even if not on the system - PROGS := $(PROGS) $(SELINUX_PROGS) +# Build the selinux command if on the system + ifeq ($(SELINUX_ENABLED),1) + PROGS := $(PROGS) $(SELINUX_PROGS) + endif # Always use external libstdbuf when building with make (Unix only) CARGOFLAGS += --features feat_external_libstdbuf endif