cargo: do not force liblzma-sys static linking
authorFabian Grünbichler <git@fabian.gruenbichler.email>
Wed, 23 Jul 2025 19:36:46 +0000 (21:36 +0200)
committerFabian Grünbichler <debian@fabian.gruenbichler.email>
Wed, 8 Apr 2026 17:02:02 +0000 (19:02 +0200)
Forwarded: not-needed

Signed-off-by: Fabian Grünbichler <git@fabian.gruenbichler.email>
Gbp-Pq: Topic vendor
Gbp-Pq: Name cargo-do-not-force-liblzma-sys-static-linking.patch

src/bootstrap/src/core/build_steps/tool.rs

index a90687c5c0f9860f1866834e9ec69aadc5cb3431..9220168f7ab4d15bfe0ef5efbb34202a61faaa72 100644 (file)
@@ -224,10 +224,6 @@ pub fn prepare_tool_cargo(
     // avoid rebuilding when running tests.
     cargo.env("SYSROOT", builder.sysroot(compiler));
 
-    // if tools are using lzma we want to force the build script to build its
-    // own copy
-    cargo.env("LZMA_API_STATIC", "1");
-
     // See also the "JEMALLOC_SYS_WITH_LG_PAGE" setting in the compile build step.
     if builder.config.jemalloc(target) && env::var_os("JEMALLOC_SYS_WITH_LG_PAGE").is_none() {
         // Build jemalloc on AArch64 with support for page sizes up to 64K