File tree 4 files changed +9
-0
lines changed
4 files changed +9
-0
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 @@ -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