From 09996d74ebafad8bf9ce813293548a3732c73562 Mon Sep 17 00:00:00 2001 From: Juergen Kunz Date: Wed, 20 May 2026 15:11:07 +0000 Subject: [PATCH] fix(rust): enable static CRT linking for Linux Rust targets --- changelog.md | 6 ++++++ rust/.cargo/config.toml | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/changelog.md b/changelog.md index 75ceb9f..6d14db2 100644 --- a/changelog.md +++ b/changelog.md @@ -4,6 +4,12 @@ +### Fixes + +- enable static CRT linking for Linux Rust targets (rust) + - adds crt-static rustflags for x86_64-unknown-linux-gnu + - adds crt-static rustflags alongside the existing aarch64 Linux cross-compilation linker configuration + ## 2026-05-12 - 27.10.2 ### Fixes diff --git a/rust/.cargo/config.toml b/rust/.cargo/config.toml index 3c32d25..7376c81 100644 --- a/rust/.cargo/config.toml +++ b/rust/.cargo/config.toml @@ -1,2 +1,6 @@ +[target.x86_64-unknown-linux-gnu] +rustflags = ["-C", "target-feature=+crt-static"] + [target.aarch64-unknown-linux-gnu] linker = "aarch64-linux-gnu-gcc" +rustflags = ["-C", "target-feature=+crt-static"]