summaryrefslogtreecommitdiff
path: root/lang/rust/files/powerpc64-elfv1/patch-src_bootstrap_native.rs
diff options
context:
space:
mode:
Diffstat (limited to 'lang/rust/files/powerpc64-elfv1/patch-src_bootstrap_native.rs')
-rw-r--r--lang/rust/files/powerpc64-elfv1/patch-src_bootstrap_native.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/lang/rust/files/powerpc64-elfv1/patch-src_bootstrap_native.rs b/lang/rust/files/powerpc64-elfv1/patch-src_bootstrap_native.rs
new file mode 100644
index 000000000000..854b992fcffe
--- /dev/null
+++ b/lang/rust/files/powerpc64-elfv1/patch-src_bootstrap_native.rs
@@ -0,0 +1,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 {