1 use crate::spec::{LinkArgs, LinkerFlavor, TargetOptions};
2 use std::default::Default;
4 pub fn opts() -> TargetOptions {
5 let mut args = LinkArgs::new();
10 // We want to be able to strip as much executable code as possible
11 // from the linker command line, and this flag indicates to the
12 // linker that it can avoid linking in dynamic libraries that don't
13 // actually satisfy any symbols up to that point (as with many other
14 // resolutions the linker does). This option only applies to all
15 // following libraries so we're sure to pass it as one of the first
17 "-Wl,--as-needed".to_string(),
22 dynamic_linking: false,
27 position_independent_executables: false,