Skip to content

Commit cf55071

Browse files
committed
Add default library search paths
Bump `flate2` `1.0.35` -> `1.1.5`
1 parent adfe556 commit cf55071

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ cargo-features = ["panic-immediate-abort"]
22

33
[package]
44
name = "sharun"
5-
version = "0.7.4"
5+
version = "0.7.5"
66
readme = "README.md"
77
license = "MIT"
88
repository = "https://github.com/VHSgunzo/sharun"
@@ -36,7 +36,7 @@ pyinstaller = []
3636
cfg-if = "1.0.0"
3737
goblin = "0.8.2"
3838
walkdir = "2.5.0"
39-
flate2 = "1.0.35"
39+
flate2 = "1.1.5"
4040
userland-execve = "0.2.0"
4141
include_file_compress = "0.1.3"
4242
nix = { version = "0.30.1", features = [ "fs" ] }

src/main.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -915,6 +915,19 @@ fn main() {
915915
library_path += &format!(":{ld_library_path_env}")
916916
}
917917

918+
library_path += ":/usr/lib:/lib";
919+
if is_elf32_bin {
920+
library_path += ":/usr/lib32:/lib32";
921+
#[cfg(target_arch = "x86_64")]
922+
{ library_path += ":/usr/lib/i386-linux-gnu" }
923+
} else {
924+
library_path += ":/usr/lib64:/lib64";
925+
#[cfg(target_arch = "x86_64")]
926+
{ library_path += ":/usr/lib/x86_64-linux-gnu" }
927+
#[cfg(target_arch = "aarch64")]
928+
{ library_path += ":/usr/lib/aarch64-linux-gnu" }
929+
}
930+
918931
for var_name in unset_envs {
919932
env::remove_var(var_name)
920933
}

0 commit comments

Comments
 (0)