fa4de5dd3a
This brings in a batch of template changes, including: - We are now using python3 - Cleaned up distfiles fetching section (clearer, shorter) - Binary distfiles now use standard install.sh scripts - Imported various patches from Adélie Linux - We are now using config.toml instead of configure - Other assorted changes
14 lines
742 B
Diff
14 lines
742 B
Diff
Reason: rustc_codegen_llvm attempts to link against the host's llvm without this patch
|
|
--- rustc-1.36.0-src/src/librustc_llvm/build.rs
|
|
+++ rustc-1.36.0-src/src/librustc_llvm/build.rs
|
|
@@ -224,8 +224,8 @@ fn main() {
|
|
println!("cargo:rustc-link-search=native={}", &lib[9..]);
|
|
} else if is_crossed {
|
|
if lib.starts_with("-L") {
|
|
- println!("cargo:rustc-link-search=native={}",
|
|
- lib[2..].replace(&host, &target));
|
|
+ println!("cargo:rustc-link-search=native={}{}",
|
|
+ env::var("XBPS_CROSS_BASE").unwrap(), &lib[2..]);
|
|
}
|
|
} else if lib.starts_with("-l") {
|
|
println!("cargo:rustc-link-lib={}", &lib[2..]);
|