From f4b37c6e8e712a103c1e9a44910d79ba3f762435 Mon Sep 17 00:00:00 2001 From: Debian Rust Maintainers Date: Tue, 8 Sep 2020 17:38:19 +0100 Subject: [PATCH] u-rustc-llvm-cross-flags Gbp-Pq: Name u-rustc-llvm-cross-flags.patch --- src/librustc_llvm/build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustc_llvm/build.rs b/src/librustc_llvm/build.rs index c15b3ba236..fe99653161 100644 --- a/src/librustc_llvm/build.rs +++ b/src/librustc_llvm/build.rs @@ -229,7 +229,7 @@ fn main() { if lib.starts_with("-LIBPATH:") { println!("cargo:rustc-link-search=native={}", &lib[9..]); } else if is_crossed { - if lib.starts_with("-L") { + if lib.starts_with("-L") && lib[2..].contains(&host) { println!("cargo:rustc-link-search=native={}", lib[2..].replace(&host, &target)); } -- 2.30.2