diff options
| author | Jessica Hamilton <jessica.l.hamilton@gmail.com> | 2017-04-24 14:21:36 +0000 |
|---|---|---|
| committer | Jessica Hamilton <jessica.l.hamilton@gmail.com> | 2017-04-24 14:29:39 +0000 |
| commit | 0d63f13378f8d8625a439ecbb36b3f97d0d2263d (patch) | |
| tree | c9f762e570733352c668166dae00aece6e0c5737 /src/bootstrap | |
| parent | e1afddc29c7a056f855c0523e598c3bda42f4aea (diff) | |
| download | rust-0d63f13378f8d8625a439ecbb36b3f97d0d2263d.tar.gz rust-0d63f13378f8d8625a439ecbb36b3f97d0d2263d.zip | |
Haiku: add missing cases of using LIBRARY_PATH
Diffstat (limited to 'src/bootstrap')
| -rw-r--r-- | src/bootstrap/bootstrap.py | 3 | ||||
| -rw-r--r-- | src/bootstrap/util.rs | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/bootstrap/bootstrap.py b/src/bootstrap/bootstrap.py index 3233a73b007..55622c6b81b 100644 --- a/src/bootstrap/bootstrap.py +++ b/src/bootstrap/bootstrap.py @@ -367,6 +367,9 @@ class RustBuild(object): env["DYLD_LIBRARY_PATH"] = os.path.join(self.bin_root(), "lib") + \ (os.pathsep + env["DYLD_LIBRARY_PATH"]) \ if "DYLD_LIBRARY_PATH" in env else "" + env["LIBRARY_PATH"] = os.path.join(self.bin_root(), "lib") + \ + (os.pathsep + env["LIBRARY_PATH"]) \ + if "LIBRARY_PATH" in env else "" env["PATH"] = os.path.join(self.bin_root(), "bin") + \ os.pathsep + env["PATH"] if not os.path.isfile(self.cargo()): diff --git a/src/bootstrap/util.rs b/src/bootstrap/util.rs index dab20f44bc3..e01c06b10fc 100644 --- a/src/bootstrap/util.rs +++ b/src/bootstrap/util.rs @@ -139,6 +139,8 @@ pub fn dylib_path_var() -> &'static str { "PATH" } else if cfg!(target_os = "macos") { "DYLD_LIBRARY_PATH" + } else if cfg!(target_os = "haiku") { + "LIBRARY_PATH" } else { "LD_LIBRARY_PATH" } |
