File tree 7 files changed +14
-1
lines changed
7 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -367,6 +367,9 @@ def build_bootstrap(self):
367
367
env ["DYLD_LIBRARY_PATH" ] = os .path .join (self .bin_root (), "lib" ) + \
368
368
(os .pathsep + env ["DYLD_LIBRARY_PATH" ]) \
369
369
if "DYLD_LIBRARY_PATH" in env else ""
370
+ env ["LIBRARY_PATH" ] = os .path .join (self .bin_root (), "lib" ) + \
371
+ (os .pathsep + env ["LIBRARY_PATH" ]) \
372
+ if "LIBRARY_PATH" in env else ""
370
373
env ["PATH" ] = os .path .join (self .bin_root (), "bin" ) + \
371
374
os .pathsep + env ["PATH" ]
372
375
if not os .path .isfile (self .cargo ()):
Original file line number Diff line number Diff line change @@ -139,6 +139,8 @@ pub fn dylib_path_var() -> &'static str {
139
139
"PATH"
140
140
} else if cfg ! ( target_os = "macos" ) {
141
141
"DYLD_LIBRARY_PATH"
142
+ } else if cfg ! ( target_os = "haiku" ) {
143
+ "LIBRARY_PATH"
142
144
} else {
143
145
"LD_LIBRARY_PATH"
144
146
}
Original file line number Diff line number Diff line change @@ -68,6 +68,8 @@ impl DynamicLibrary {
68
68
"PATH"
69
69
} else if cfg ! ( target_os = "macos" ) {
70
70
"DYLD_LIBRARY_PATH"
71
+ } else if cfg ! ( target_os = "haiku" ) {
72
+ "LIBRARY_PATH"
71
73
} else {
72
74
"LD_LIBRARY_PATH"
73
75
}
Original file line number Diff line number Diff line change @@ -16,9 +16,10 @@ pub fn opts() -> TargetOptions {
16
16
linker : "cc" . to_string ( ) ,
17
17
dynamic_linking : true ,
18
18
executables : true ,
19
- has_rpath : true ,
19
+ has_rpath : false ,
20
20
target_family : Some ( "unix" . to_string ( ) ) ,
21
21
linker_is_gnu : true ,
22
+ no_integrated_as : true ,
22
23
.. Default :: default ( )
23
24
}
24
25
}
Original file line number Diff line number Diff line change @@ -113,6 +113,7 @@ mod imp {
113
113
pub l_sysid : libc:: c_int ,
114
114
}
115
115
116
+ pub const F_RDLCK : libc:: c_short = 0x0040 ;
116
117
pub const F_UNLCK : libc:: c_short = 0x0200 ;
117
118
pub const F_WRLCK : libc:: c_short = 0x0400 ;
118
119
pub const F_SETLK : libc:: c_int = 0x0080 ;
Original file line number Diff line number Diff line change @@ -39,5 +39,7 @@ fn main() {
39
39
println ! ( "cargo:rustc-link-lib=static-nobundle=pthread" ) ;
40
40
} else if target. contains ( "fuchsia" ) {
41
41
println ! ( "cargo:rustc-link-lib=unwind" ) ;
42
+ } else if target. contains ( "haiku" ) {
43
+ println ! ( "cargo:rustc-link-lib=gcc_s" ) ;
42
44
}
43
45
}
Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ pub fn dylib_env_var() -> &'static str {
20
20
"PATH"
21
21
} else if cfg ! ( target_os = "macos" ) {
22
22
"DYLD_LIBRARY_PATH"
23
+ } else if cfg ! ( target_os = "haiku" ) {
24
+ "LIBRARY_PATH"
23
25
} else {
24
26
"LD_LIBRARY_PATH"
25
27
}
You can’t perform that action at this time.
0 commit comments