From f50cde252b53433a63487f1bbb1de99af8072e20 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Mon, 24 Jul 2023 21:30:23 +0200 Subject: [PATCH] only set SELINUX_ENABLED=1 on Linux --- util/build-gnu.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/util/build-gnu.sh b/util/build-gnu.sh index 88f4eda98e3..74346f0956f 100755 --- a/util/build-gnu.sh +++ b/util/build-gnu.sh @@ -43,7 +43,14 @@ UU_BUILD_DIR="${path_UUTILS}/target/${UU_MAKE_PROFILE}" echo "UU_BUILD_DIR='${UU_BUILD_DIR}'" cd "${path_UUTILS}" && echo "[ pwd:'${PWD}' ]" -SELINUX_ENABLED=1 make PROFILE="${UU_MAKE_PROFILE}" + +if [ "$(uname)" == "Linux" ]; then +# only set on linux + export SELINUX_ENABLED=1 +fi + +make PROFILE="${UU_MAKE_PROFILE}" + cp "${UU_BUILD_DIR}/install" "${UU_BUILD_DIR}/ginstall" # The GNU tests rename this script before running, to avoid confusion with the make target # Create *sum binaries for sum in b2sum b3sum md5sum sha1sum sha224sum sha256sum sha384sum sha512sum; do