diff --git a/util/build-gnu.sh b/util/build-gnu.sh index 75dfdb035..681ec5b07 100755 --- a/util/build-gnu.sh +++ b/util/build-gnu.sh @@ -132,10 +132,7 @@ cd - # Pass the feature flags to make, which will pass them to cargo "${MAKE}" PROFILE="${UU_MAKE_PROFILE}" CARGOFLAGS="${CARGO_FEATURE_FLAGS}" -touch g -echo "stat with selinux support" -./target/debug/stat -c%C g || true -rm g +[ ${SELINUX_ENABLED} = 1 ] && touch g && echo "stat with selinux support" && "${UU_MAKE_PROFILE}"/stat -c%C g && rm g 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