aboutsummaryrefslogtreecommitdiffstats
path: root/testing/rust/alpine-need-rpath.patch
diff options
context:
space:
mode:
Diffstat (limited to 'testing/rust/alpine-need-rpath.patch')
-rw-r--r--testing/rust/alpine-need-rpath.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/testing/rust/alpine-need-rpath.patch b/testing/rust/alpine-need-rpath.patch
new file mode 100644
index 0000000000..8710f0254b
--- /dev/null
+++ b/testing/rust/alpine-need-rpath.patch
@@ -0,0 +1,11 @@
+--- a/src/librustc_back/target/linux_musl_base.rs
++++ b/src/librustc_back/target/linux_musl_base.rs
+@@ -22,5 +22,8 @@
+ // Static position-independent executables are supported.
+ base.static_position_independent_executables = true;
+
++ // We need an RPATH.
++ base.need_rpath = true;
++
+ base
+ }