From: Debian Rust Maintainers Date: Sun, 5 Jan 2020 13:35:46 +0000 (+0000) Subject: u-rustc-llvm-cross-flags X-Git-Tag: archive/raspbian/1.40.0+dfsg1-5+rpi1^2~17 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=0b338553f4f6035680127e851512a3958da95b19;p=rustc.git u-rustc-llvm-cross-flags Gbp-Pq: Name u-rustc-llvm-cross-flags.patch --- 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)); }