Skip to content

Commit 60a972d

Browse files
jackpot51bjorn3
authored andcommitted
Several fixes to the redox target specs
* Allow crt-static for dylibs * Pass -lgcc to the linker
1 parent 92af831 commit 60a972d

File tree

1 file changed

+3
-1
lines changed
  • compiler/rustc_target/src/spec/base

1 file changed

+3
-1
lines changed

compiler/rustc_target/src/spec/base/redox.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use crate::spec::{cvs, RelroLevel, TargetOptions};
1+
use crate::spec::{cvs, Cc, LinkerFlavor, Lld, RelroLevel, TargetOptions};
22

33
pub fn opts() -> TargetOptions {
44
TargetOptions {
@@ -12,6 +12,8 @@ pub fn opts() -> TargetOptions {
1212
has_thread_local: true,
1313
crt_static_default: true,
1414
crt_static_respected: true,
15+
crt_static_allows_dylibs: true,
16+
late_link_args: TargetOptions::link_args(LinkerFlavor::Gnu(Cc::Yes, Lld::No), &["-lgcc"]),
1517
..Default::default()
1618
}
1719
}

0 commit comments

Comments
 (0)