]>
Commit | Line | Data |
---|---|---|
cdc7bbd5 | 1 | use crate::spec::{RelroLevel, TargetOptions}; |
1a4d82fc JJ |
2 | |
3 | pub fn opts() -> TargetOptions { | |
4 | TargetOptions { | |
29967ef6 | 5 | os: "linux".to_string(), |
1a4d82fc JJ |
6 | dynamic_linking: true, |
7 | executables: true, | |
29967ef6 | 8 | os_family: Some("unix".to_string()), |
1a4d82fc JJ |
9 | linker_is_gnu: true, |
10 | has_rpath: true, | |
1a4d82fc | 11 | position_independent_executables: true, |
3b2f2976 | 12 | relro_level: RelroLevel::Full, |
9cc50fc6 | 13 | has_elf_tls: true, |
29967ef6 | 14 | crt_static_respected: true, |
dfeec247 | 15 | ..Default::default() |
1a4d82fc JJ |
16 | } |
17 | } |