From 859c46793bcf83aea05dd5bb470f2987fab1bfe1 Mon Sep 17 00:00:00 2001 From: Debian Rust Maintainers Date: Sat, 7 Nov 2020 21:21:03 +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 5ef3afac46..dee536d81d 100644 --- a/src/librustc_llvm/build.rs +++ b/src/librustc_llvm/build.rs @@ -249,7 +249,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