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)
10 .push("-Wl,--allow-multiple-definition".to_string());
11 base.is_like_android = true;
12 base.position_independent_executables = true;
13 base.has_elf_tls = false;
14 base.requires_uwtable = true;