fallback to /usr/lib if no rpath

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui 2024-02-12 13:22:05 +00:00
parent 92e8ecaf24
commit 3fd06f2dd0
No known key found for this signature in database
GPG Key ID: D3A4405BE6CC17F4
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ fn main() {
eprintln!("{} {}", tag, String::from_utf8_lossy(s));
}
}
let runpath = runpath.unwrap();
let runpath = runpath.unwrap_or(b"/usr/lib".to_vec());
let libc_name = libc_name.unwrap();
let libc_name = std::ffi::OsStr::from_bytes(&libc_name);
let mut libc_path = None;