blob: fb02298e5965531ef69b4bcf925e50260c1e487e [file] [log] [blame]
Around the line of code this patches there is a long explanation of the rpath
but the gist of it was that better handling of the rpath would be done in the
future. For now, we just add the proper rpath.
diff --git a/src/bootstrap/bin/rustc.rs b/src/bootstrap/bin/rustc.rs
index a996240..da67f06 100644
--- a/src/bootstrap/bin/rustc.rs
+++ b/src/bootstrap/bin/rustc.rs
@@ -192,7 +192,7 @@ fn main() {
}
Some("-Wl,-rpath,@loader_path/../lib")
} else if !target.contains("windows") {
- Some("-Wl,-rpath,$ORIGIN/../lib")
+ Some("-Wl,-rpath,$ORIGIN/../lib:/usr/lib64/rust/rustlib/x86_64-unknown-linux-gnu/lib")
} else {
None
};