In accordance with the design from https://github.com/rust-lang/rust/pull/96827#issuecomment-1208441595
17 lines
450 B
Rust
17 lines
450 B
Rust
use crate::spec::{cvs, Cc, LinkerFlavor, TargetOptions};
|
|
|
|
pub fn opts() -> TargetOptions {
|
|
TargetOptions {
|
|
os: "solaris".into(),
|
|
dynamic_linking: true,
|
|
has_rpath: true,
|
|
families: cvs!["unix"],
|
|
is_like_solaris: true,
|
|
linker_flavor: LinkerFlavor::Unix(Cc::Yes),
|
|
limit_rdylib_exports: false, // Linker doesn't support this
|
|
eh_frame_header: false,
|
|
|
|
..Default::default()
|
|
}
|
|
}
|