aboutsummaryrefslogtreecommitdiffstats
path: root/community/rust/alpine-change-rpath-to-rustlib.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/rust/alpine-change-rpath-to-rustlib.patch')
-rw-r--r--community/rust/alpine-change-rpath-to-rustlib.patch6
1 files changed, 4 insertions, 2 deletions
diff --git a/community/rust/alpine-change-rpath-to-rustlib.patch b/community/rust/alpine-change-rpath-to-rustlib.patch
index 609fdde358..3eb1a5d02e 100644
--- a/community/rust/alpine-change-rpath-to-rustlib.patch
+++ b/community/rust/alpine-change-rpath-to-rustlib.patch
@@ -24,13 +24,15 @@ Related upstream issues:
--- a/src/bootstrap/bin/rustc.rs
+++ b/src/bootstrap/bin/rustc.rs
-@@ -224,9 +224,9 @@
+@@ -224,11 +224,11 @@
// so. Note that this is definitely a hack, and we should likely
// flesh out rpath support more fully in the future.
cmd.arg("-Z").arg("osx-rpath-install-name");
- Some("-Wl,-rpath,@loader_path/../lib")
+ Some("-Wl,-rpath,@loader_path/../lib".to_string())
- } else if !target.contains("windows") && !target.contains("wasm32") {
+ } else if !target.contains("windows") &&
+ !target.contains("wasm32") &&
+ !target.contains("fuchsia") {
- Some("-Wl,-rpath,$ORIGIN/../lib")
+ Some(format!("-Wl,-rpath,$ORIGIN/../lib/rustlib/{}/lib", target))
} else {