From d452345f8173559479979337bdf46c4f282e2208 Mon Sep 17 00:00:00 2001 From: Debian Rust Maintainers Date: Tue, 1 Dec 2020 19:57:48 +0000 Subject: [PATCH] u-rustc-llvm-cross-flags =================================================================== Gbp-Pq: Name u-rustc-llvm-cross-flags.patch --- compiler/rustc_llvm/build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/rustc_llvm/build.rs b/compiler/rustc_llvm/build.rs index 92cf950324..c704aa5c10 100644 --- a/compiler/rustc_llvm/build.rs +++ b/compiler/rustc_llvm/build.rs @@ -251,7 +251,7 @@ fn main() { if is_crossed { if lib.starts_with("-LIBPATH:") { println!("cargo:rustc-link-search=native={}", lib[9..].replace(&host, &target)); - } else if lib.starts_with("-L") { + } else if lib.starts_with("-L") && lib[2..].contains(&host) { println!("cargo:rustc-link-search=native={}", lib[2..].replace(&host, &target)); } } else if lib.starts_with("-LIBPATH:") { -- 2.30.2