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