We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5726b61 commit 2e8afcaCopy full SHA for 2e8afca
compiler/rustc_target/src/spec/linux_musl_base.rs
@@ -1,10 +1,13 @@
1
-use crate::spec::TargetOptions;
+use crate::spec::{LinkerFlavor, TargetOptions};
2
3
pub fn opts() -> TargetOptions {
4
let mut base = super::linux_base::opts();
5
6
base.env = "musl".into();
7
8
+ // libssp_nonshared.a is needed for __stack_chk_fail_local when using libc.so
9
+ base.post_link_args.insert(LinkerFlavor::Gcc, vec!["-lssp_nonshared".into()]);
10
+
11
// These targets statically link libc by default
12
base.crt_static_default = true;
13
0 commit comments