Skip to content

Commit

Permalink
Folder name change for linux
Browse files Browse the repository at this point in the history
  • Loading branch information
spector-9 committed Feb 5, 2024
1 parent 6b8f424 commit 703475d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,12 @@ pub fn main() -> Result<()> {
// .build_arg(format!("-j{}", std::thread::available_parallelism()?.get()))
.build();

println!("cargo:rustc-link-search={}", dst.join("lib").display());
let lib_folder = if cfg!(target_os = "linux") {
"lib64"
} else {
"lib"
};
println!("cargo:rustc-link-search={}", dst.join(lib_folder).display());
let name = if cfg!(unix) { "jpeg" } else { "jpeg-static" };

println!("cargo:rustc-link-lib=static={name}");
Expand Down

0 comments on commit 703475d

Please sign in to comment.