blob: 93ecc66469e31451ab5dd3b425c23148c32c5b9e [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/builder.rs b/src/bootstrap/builder.rs
index d0eed3f12d1..63c8c6ea0b0 100644
--- a/src/bootstrap/builder.rs
+++ b/src/bootstrap/builder.rs
@@ -943,7 +943,7 @@ impl<'a> Builder<'a> {
rustflags.arg("-Zosx-rpath-install-name");
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
};