From 565a863bc2574840d03dfb09fc52db9be8526b5e Mon Sep 17 00:00:00 2001 From: Samuel Holland Date: Tue, 22 Aug 2017 16:24:29 -0500 Subject: [PATCH] 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. --- src/librustc_back/target/linux_musl_base.rs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/librustc_back/target/linux_musl_base.rs b/src/librustc_back/target/linux_musl_base.rs index e77a40e3a3aa..6e5e139715cc 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.