aboutsummaryrefslogtreecommitdiffstats
path: root/testing/rust/alpine-musl-dynamic-linking-by-default.patch
diff options
context:
space:
mode:
authorShiz <hi@shiz.me>2017-04-16 15:56:18 +0000
committerJakub Jirutka <jakub@jirutka.cz>2017-04-21 01:44:33 +0200
commit3db351aa5647eb4a482e9e008bedcf1a5be51302 (patch)
treefe64ea58b55936fc2da3f78eaa48c1703ec6bcf6 /testing/rust/alpine-musl-dynamic-linking-by-default.patch
parente4cc4b79b548e043d635ff35c3e9f2e832be1202 (diff)
downloadaports-3db351aa5647eb4a482e9e008bedcf1a5be51302.tar.bz2
aports-3db351aa5647eb4a482e9e008bedcf1a5be51302.tar.xz
testing/rust: reorganize patches
This divides up the patches in three logical categories: - musl-*.patch: musl support patches intended for upstreaming; - alpine-*.patch: Alpine-specific patches that are likely not upstreamable; - *.patch: functionality patch that may make it upstream.
Diffstat (limited to 'testing/rust/alpine-musl-dynamic-linking-by-default.patch')
-rw-r--r--testing/rust/alpine-musl-dynamic-linking-by-default.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/testing/rust/alpine-musl-dynamic-linking-by-default.patch b/testing/rust/alpine-musl-dynamic-linking-by-default.patch
new file mode 100644
index 0000000000..225fc2df06
--- /dev/null
+++ b/testing/rust/alpine-musl-dynamic-linking-by-default.patch
@@ -0,0 +1,16 @@
+From: Jakub Jirutka <jakub@jirutka.cz>
+Date: Thu, 13 Apr 2017 15:57:00 +0200
+Subject: [PATCH] Use dynamic linking as default on musl
+
+--- a/src/librustc_back/target/linux_musl_base.rs
++++ b/src/librustc_back/target/linux_musl_base.rs
+@@ -19,9 +19,6 @@
+ // argument is *not* necessary for normal builds, but it can't hurt!
+ base.pre_link_args.push("-Wl,--eh-frame-hdr".to_string());
+
+- // Except for on MIPS, these targets statically link libc by default.
+- base.crt_static_default = true;
+-
+ // Static position-independent executables are supported.
+ base.static_position_independent_executables = true;
+