From 366fb9d6858c18461265f81f93479ca084c1ea92 Mon Sep 17 00:00:00 2001 From: Steven Malis Date: Wed, 20 Aug 2025 16:54:04 -0400 Subject: [PATCH] Repo: Explicitly specify static crt for musl targets --- .cargo/config.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.cargo/config.toml b/.cargo/config.toml index f44fec7bfa..02f91db5a7 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -89,6 +89,8 @@ rustflags = [ rustflags = [ # Use the musl from the sysroot, not from the Rust distribution. "-Clink-self-contained=n", + # Force musl to be statically linked in + "-Ctarget-feature=+crt-static", # Use RELR relocation format, which is considerably smaller. "-Clink-arg=-Wl,-z,pack-relative-relocs", ]