From: Debian Rust Maintainers Date: Tue, 8 Sep 2020 16:38:19 +0000 (+0100) Subject: u-rustc-llvm-cross-flags X-Git-Tag: archive/raspbian/1.41.1+dfsg1-1_deb10u1+rpi1~22 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=f4b37c6e8e712a103c1e9a44910d79ba3f762435;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)); }