]> git.proxmox.com Git - rustc.git/blob - debian/patches/u-rustc-llvm-cross-flags.patch
rebase of the patches
[rustc.git] / debian / patches / u-rustc-llvm-cross-flags.patch
1 Index: rustc.git/src/librustc_llvm/build.rs
2 ===================================================================
3 --- rustc.git.orig/src/librustc_llvm/build.rs
4 +++ rustc.git/src/librustc_llvm/build.rs
5 @@ -249,7 +249,7 @@ fn main() {
6 if is_crossed {
7 if lib.starts_with("-LIBPATH:") {
8 println!("cargo:rustc-link-search=native={}", lib[9..].replace(&host, &target));
9 - } else if lib.starts_with("-L") {
10 + } else if lib.starts_with("-L") && lib[2..].contains(&host) {
11 println!("cargo:rustc-link-search=native={}", lib[2..].replace(&host, &target));
12 }
13 } else if lib.starts_with("-LIBPATH:") {