about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSamuel Holland <samuel@sholland.org>2017-08-22 16:24:29 -0500
committerSamuel Holland <samuel@sholland.org>2017-08-22 16:24:29 -0500
commit565a863bc2574840d03dfb09fc52db9be8526b5e (patch)
tree92cfc32ec8f1cf54bc4cea186e3ea201b03f7dd4
parentc9645678e86861f670ce8b422c2e565c1a232916 (diff)
downloadrust-565a863bc2574840d03dfb09fc52db9be8526b5e.tar.gz
rust-565a863bc2574840d03dfb09fc52db9be8526b5e.zip
Support dynamic linking for musl-based targets
Note that this commit does not affect mips-musl targets, as they do not
inherit from linux_musl_base.
-rw-r--r--src/librustc_back/target/linux_musl_base.rs7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/librustc_back/target/linux_musl_base.rs b/src/librustc_back/target/linux_musl_base.rs
index e77a40e3a3a..6e5e139715c 100644
--- a/src/librustc_back/target/linux_musl_base.rs
+++ b/src/librustc_back/target/linux_musl_base.rs
@@ -60,13 +60,6 @@ pub fn opts() -> TargetOptions {
     base.pre_link_objects_exe.push("crti.o".to_string());
     base.post_link_objects.push("crtn.o".to_string());
 
-    // MUSL support doesn't currently include dynamic linking, so there's no
-    // need for dylibs or rpath business. Additionally `-pie` is incompatible
-    // with `-static`, so we can't pass `-pie`.
-    base.dynamic_linking = false;
-    base.has_rpath = false;
-    base.position_independent_executables = false;
-
     // These targets statically link libc by default
     base.crt_static_default = true;
     // These targets allow the user to choose between static and dynamic linking.