mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
Haiku: fix initial platform support
This commit is contained in:
parent
535ee6c7f0
commit
e1afddc29c
@ -16,9 +16,10 @@ pub fn opts() -> TargetOptions {
|
||||
linker: "cc".to_string(),
|
||||
dynamic_linking: true,
|
||||
executables: true,
|
||||
has_rpath: true,
|
||||
has_rpath: false,
|
||||
target_family: Some("unix".to_string()),
|
||||
linker_is_gnu: true,
|
||||
no_integrated_as: true,
|
||||
.. Default::default()
|
||||
}
|
||||
}
|
||||
|
@ -113,6 +113,7 @@ mod imp {
|
||||
pub l_sysid: libc::c_int,
|
||||
}
|
||||
|
||||
pub const F_RDLCK: libc::c_short = 0x0040;
|
||||
pub const F_UNLCK: libc::c_short = 0x0200;
|
||||
pub const F_WRLCK: libc::c_short = 0x0400;
|
||||
pub const F_SETLK: libc::c_int = 0x0080;
|
||||
|
@ -39,5 +39,7 @@ fn main() {
|
||||
println!("cargo:rustc-link-lib=static-nobundle=pthread");
|
||||
} else if target.contains("fuchsia") {
|
||||
println!("cargo:rustc-link-lib=unwind");
|
||||
} else if target.contains("haiku") {
|
||||
println!("cargo:rustc-link-lib=gcc_s");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user