Skip to content

Commit 565a863

Browse files
committed
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.
1 parent c964567 commit 565a863

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/librustc_back/target/linux_musl_base.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,6 @@ pub fn opts() -> TargetOptions {
6060
base.pre_link_objects_exe.push("crti.o".to_string());
6161
base.post_link_objects.push("crtn.o".to_string());
6262

63-
// MUSL support doesn't currently include dynamic linking, so there's no
64-
// need for dylibs or rpath business. Additionally `-pie` is incompatible
65-
// with `-static`, so we can't pass `-pie`.
66-
base.dynamic_linking = false;
67-
base.has_rpath = false;
68-
base.position_independent_executables = false;
69-
7063
// These targets statically link libc by default
7164
base.crt_static_default = true;
7265
// These targets allow the user to choose between static and dynamic linking.

0 commit comments

Comments
 (0)