From 51f30bb8c611c5f5ba6a7a4710dd8ac8996c96d5 Mon Sep 17 00:00:00 2001 From: Wildan M Date: Tue, 18 Nov 2025 14:41:37 +0700 Subject: [PATCH] Adjust extrautils to support static through features --- recipes/core/extrautils/recipe.toml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/recipes/core/extrautils/recipe.toml b/recipes/core/extrautils/recipe.toml index 82a72f0dd..120a6c2e2 100644 --- a/recipes/core/extrautils/recipe.toml +++ b/recipes/core/extrautils/recipe.toml @@ -2,7 +2,16 @@ git = "https://gitlab.redox-os.org/redox-os/extrautils.git" [build] -template = "cargo" +template = "custom" dependencies = [ "xz" ] +script = """ +DYNAMIC_INIT + +if [ "${COOKBOOK_DYNAMIC}" != "1" ]; then + install_flags+=" --features=static" +fi + +cookbook_cargo +"""