diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2017-04-13 15:59:54 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-04-13 16:01:58 +0200 |
commit | a552535009f808f093ecc0f614045623b13e1e51 (patch) | |
tree | df36895f22db2b2aafc0ad504781282fdbf91241 /testing/rust/musl-dynamic-linking-by-default.patch | |
parent | d455428dfa7ce90b979620546f53f4f172edee76 (diff) | |
download | aports-a552535009f808f093ecc0f614045623b13e1e51.tar.bz2 aports-a552535009f808f093ecc0f614045623b13e1e51.tar.xz |
testing/rust: refactor patches for linux_musl_base.rs
Diffstat (limited to 'testing/rust/musl-dynamic-linking-by-default.patch')
-rw-r--r-- | testing/rust/musl-dynamic-linking-by-default.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/testing/rust/musl-dynamic-linking-by-default.patch b/testing/rust/musl-dynamic-linking-by-default.patch new file mode 100644 index 0000000000..225fc2df06 --- /dev/null +++ b/testing/rust/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; + |