From 48610134939b939932db342142a50697d5c0e0cd Mon Sep 17 00:00:00 2001 From: bjorn3 <17426603+bjorn3@users.noreply.github.com> Date: Fri, 12 Dec 2025 21:58:25 +0100 Subject: [PATCH] Make it explicit that bootstrap is statically linked Even if we start using dynamic linking for the rest of initfs, bootstrap has to be statically linked as it is responsible for loading the first instance of the dynamic linker. --- recipes/core/base-initfs/recipe.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/core/base-initfs/recipe.toml b/recipes/core/base-initfs/recipe.toml index 2e061818..cc9e1bbf 100644 --- a/recipes/core/base-initfs/recipe.toml +++ b/recipes/core/base-initfs/recipe.toml @@ -106,7 +106,7 @@ cp "${COOKBOOK_BUILD}/initfs/bin/zerod" "${COOKBOOK_BUILD}/initfs/bin/nulld" cp "${COOKBOOK_SYSROOT}/usr/bin/redoxfs" "${COOKBOOK_BUILD}/initfs/bin" ARCH="$(echo "${GNU_TARGET}" | cut -d - -f1)" -cargo \ +RUSTFLAGS="$RUSTFLAGS -Ctarget-feature=+crt-static" cargo \ -Zbuild-std=core,alloc,compiler_builtins \ -Zbuild-std-features=compiler-builtins-mem build \ --target "${TARGET}" \