summaryrefslogtreecommitdiff
path: root/lang/rust/files/patch-src_librustc__llvm_build.rs
blob: fa2064382f55cf74a74bc88c07291ac1078bbd08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- src/librustc_llvm/build.rs.orig	2019-04-08 12:42:31 UTC
+++ src/librustc_llvm/build.rs
@@ -254,7 +254,10 @@ fn main() {
     };
 
     // C++ runtime library
-    if !target.contains("msvc") {
+    if target == "powerpc64-unknown-freebsd" {
+        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 {
             assert!(!cxxflags.contains("stdlib=libc++"));
             let path = PathBuf::from(s);