Skip to content

Commit a72cfe2

Browse files
mati865strfry
authored andcommittedDec 6, 2018
musl: enable dynamic linking in the spec
1 parent 7e984c9 commit a72cfe2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
 

‎src/librustc_target/spec/linux_musl_base.rs

+8
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,13 @@ pub fn opts() -> TargetOptions {
4040
// These targets allow the user to choose between static and dynamic linking.
4141
base.crt_static_respected = true;
4242

43+
// Defaults for dynamic linking
44+
base.dynamic_linking = true;
45+
base.executables = true;
46+
base.has_elf_tls = true;
47+
base.has_rpath = true;
48+
base.position_independent_executables = true;
49+
base.relro_level = true;
50+
4351
base
4452
}

0 commit comments

Comments
 (0)
Please sign in to comment.