20 lines
869 B
Diff
20 lines
869 B
Diff
From: Jakub Jirutka <jakub@jirutka.cz>
|
|
Date: Sat, 08 Aug 2016 15:06:00 +0200
|
|
Subject: [PATCH] Fix linux_musl_base for native musl host
|
|
|
|
See https://github.com/rust-lang/rust/pull/40113
|
|
|
|
--- a/src/librustc_target/spec/linux_musl_base.rs
|
|
+++ b/src/librustc_target/spec/linux_musl_base.rs
|
|
@@ -10,10 +10,6 @@
|
|
// argument is *not* necessary for normal builds, but it can't hurt!
|
|
base.pre_link_args.get_mut(&LinkerFlavor::Gcc).unwrap().push("-Wl,--eh-frame-hdr".to_string());
|
|
|
|
- base.pre_link_objects_fallback = crt_objects::pre_musl_fallback();
|
|
- base.post_link_objects_fallback = crt_objects::post_musl_fallback();
|
|
- base.crt_objects_fallback = Some(CrtObjectsFallback::Musl);
|
|
-
|
|
// These targets statically link libc by default
|
|
base.crt_static_default = true;
|
|
// These targets allow the user to choose between static and dynamic linking.
|