1 use crate::spec::{LinkerFlavor, TargetOptions};
3 pub fn opts() -> TargetOptions {
4 let mut base = super::linux_base::opts();
5 // Many of the symbols defined in compiler-rt are also defined in libgcc.
6 // Android's linker doesn't like that by default.
8 .get_mut(&LinkerFlavor::Gcc).unwrap().push("-Wl,--allow-multiple-definition".to_string());
9 base.is_like_android = true;
10 base.position_independent_executables = true;
11 base.has_elf_tls = false;
12 base.requires_uwtable = true;