summaryrefslogtreecommitdiff
path: root/lang/rust/files/powerpc64-elfv1/patch-src_bootstrap_native.rs
blob: 854b992fcffe9365b5dba0759468a63c5345bccd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- src/bootstrap/native.rs.orig	2019-11-04 15:45:21 UTC
+++ src/bootstrap/native.rs
@@ -241,6 +241,10 @@ impl Step for Llvm {
             }
         }
 
+        if target == "powerpc64-unknown-freebsd" {
+            cfg.define("CMAKE_EXE_LINKER_FLAGS", "-Wl,-rpath=/usr/local/lib/%CC% -L/usr/local/lib/%CC%");
+        }
+
         // http://llvm.org/docs/HowToCrossCompileLLVM.html
         if target != builder.config.build && !emscripten {
             builder.ensure(Llvm {