| 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 2748903f2d4..ff49b9ad939 100644 |
| --- a/src/bootstrap/builder.rs |
| +++ b/src/bootstrap/builder.rs |
| @@ -983,7 +983,7 @@ impl<'a> Builder<'a> { |
| !target.contains("wasm32") && |
| !target.contains("emscripten") && |
| !target.contains("fuchsia") { |
| - Some("-Wl,-rpath,$ORIGIN/../lib") |
| + Some("-Wl,-rpath,$ORIGIN/../lib:/usr/lib64/rust/rustlib/x86_64-unknown-linux-gnu/lib") |
| } else { |
| None |
| }; |