32 lines
1.4 KiB
Diff
32 lines
1.4 KiB
Diff
From f229c2bbd32deab98978d8453d0f44f23849fa09 Mon Sep 17 00:00:00 2001
|
|
From: q66 <daniel@octaforge.org>
|
|
Date: Sun, 3 May 2020 18:05:22 +0200
|
|
Subject: [PATCH 08/15] Void: fix linkage against host/target LLVM in cross
|
|
setups
|
|
|
|
---
|
|
compiler/rustc_llvm/build.rs | 6 ++++--
|
|
1 file changed, 4 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/compiler/rustc_llvm/build.rs b/compiler/rustc_llvm/build.rs
|
|
index 7729ec6be..66b8a4215 100644
|
|
--- a/compiler/rustc_llvm/build.rs
|
|
+++ b/compiler/rustc_llvm/build.rs
|
|
@@ -291,9 +291,11 @@ fn main() {
|
|
for lib in output(&mut cmd).split_whitespace() {
|
|
if is_crossed {
|
|
if let Some(stripped) = lib.strip_prefix("-LIBPATH:") {
|
|
- println!("cargo:rustc-link-search=native={}", stripped.replace(&host, &target));
|
|
+ println!("cargo:rustc-link-search=native={}{}",
|
|
+ env::var("XBPS_CROSS_BASE").unwrap(), stripped);
|
|
} else if let Some(stripped) = lib.strip_prefix("-L") {
|
|
- println!("cargo:rustc-link-search=native={}", stripped.replace(&host, &target));
|
|
+ println!("cargo:rustc-link-search=native={}{}",
|
|
+ env::var("XBPS_CROSS_BASE").unwrap(), stripped);
|
|
}
|
|
} else if let Some(stripped) = lib.strip_prefix("-LIBPATH:") {
|
|
println!("cargo:rustc-link-search=native={}", stripped);
|
|
--
|
|
2.37.2
|
|
|