From c56f85a8bd58aac8106fb3386f198e7d6e3910d6 Mon Sep 17 00:00:00 2001 From: Debian Rust Maintainers Date: Sun, 20 Dec 2020 18:52:10 +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