svn commit: r528606 - head/lang/rust/files/powerpc64-elfv2
Tobias Kortkamp
tobik at FreeBSD.org
Tue Mar 17 22:32:22 UTC 2020
Author: tobik
Date: Tue Mar 17 22:32:20 2020
New Revision: 528606
URL: https://svnweb.freebsd.org/changeset/ports/528606
Log:
lang/rust-bootstrap: Unbreak powerpc64_elfv2 flavor after r528599
error: could not find native static library `stdc++`, perhaps an -L flag is missing?
error: aborting due to previous error
error: could not compile `rustc_llvm`.
PR: 244813
Modified:
head/lang/rust/files/powerpc64-elfv2/patch-src_librustc__llvm_build.rs
Modified: head/lang/rust/files/powerpc64-elfv2/patch-src_librustc__llvm_build.rs
==============================================================================
--- head/lang/rust/files/powerpc64-elfv2/patch-src_librustc__llvm_build.rs Tue Mar 17 22:19:14 2020 (r528605)
+++ head/lang/rust/files/powerpc64-elfv2/patch-src_librustc__llvm_build.rs Tue Mar 17 22:32:20 2020 (r528606)
@@ -1,16 +1,12 @@
---- src/librustc_llvm/build.rs.orig 2019-12-16 15:38:05 UTC
+--- src/librustc_llvm/build.rs.orig 2020-03-09 22:11:17 UTC
+++ src/librustc_llvm/build.rs
-@@ -273,7 +273,14 @@ fn main() {
+@@ -264,7 +264,10 @@ fn main() {
};
// C++ runtime library
- if !target.contains("msvc") {
-+ if target == "powerpc64-unknown-freebsd" {
-+ if is_crossed {
-+ println!("cargo:rustc-link-search=native=%WRKDIR%/usr/local/lib/%CC%");
-+ } else {
-+ println!("cargo:rustc-link-search=native=/usr/local/lib/%CC%");
-+ }
++ if target == "powerpc64-unknown-freebsd" && !is_crossed {
++ println!("cargo:rustc-link-search=native=/usr/local/lib/%CC%");
+ println!("cargo:rustc-link-lib=static=stdc++");
+ } else if !target.contains("msvc") {
if let Some(s) = llvm_static_stdcpp {
More information about the svn-ports-all
mailing list