Skip to content

Commit

Permalink
Support dynamic linking for musl-based targets
Browse files Browse the repository at this point in the history
Note that this commit does not affect mips-musl targets, as they do not
inherit from linux_musl_base.
  • Loading branch information
smaeul committed Aug 22, 2017
1 parent c964567 commit 565a863
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/librustc_back/target/linux_musl_base.rs
Expand Up @@ -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.
Expand Down

0 comments on commit 565a863

Please sign in to comment.