From 078d8b6f2e2fb1b98d04d0e18e359b8087689300 Mon Sep 17 00:00:00 2001 From: Debian Rust Maintainers Date: Sat, 28 Aug 2021 10:48:11 +0100 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 e939f4207b..a7af28028d 100644 --- a/compiler/rustc_llvm/build.rs +++ b/compiler/rustc_llvm/build.rs @@ -248,7 +248,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