From 7fd26a7e4bf26fe3de2b599476ce462fd1ae87e3 Mon Sep 17 00:00:00 2001 From: Debian Rust Maintainers Date: Sat, 29 Aug 2020 16:54:36 +0100 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 b2c550ad0b..23c44f005f 100644 --- a/src/librustc_llvm/build.rs +++ b/src/librustc_llvm/build.rs @@ -235,7 +235,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