From 0b338553f4f6035680127e851512a3958da95b19 Mon Sep 17 00:00:00 2001 From: Debian Rust Maintainers Date: Sun, 5 Jan 2020 13:35:46 +0000 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