Skip to content

Commit c15ad61

Browse files
ByronJakubOnderka
andcommitted
Add lib64 to the rustc-link-search path
Additional context from #141 (comment) I am actually not sure, but there was changed in cmake scripts in zlib-ng to 2.1. And the default cmake detection is a mess :D So I think if we want to test it in CI, we have to also test against different distribution than Ubuntu or Debian. From cmake source code: ``` # Override this default 'lib' with 'lib64' iff: # - we are on Linux system but NOT cross-compiling # - we are NOT on debian # - we are NOT building for conda # - we are on a 64 bits system ``` Co-Authored-By: Jakub Onderka <[email protected]>
2 parents 4457ab3 + f8be294 commit c15ad61

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

build_zng.rs

+5
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,15 @@ pub fn build_zlib_ng(target: &str, compat: bool) {
2222

2323
let includedir = install_dir.join("include");
2424
let libdir = install_dir.join("lib");
25+
let libdir64 = install_dir.join("lib64");
2526
println!(
2627
"cargo:rustc-link-search=native={}",
2728
libdir.to_str().unwrap()
2829
);
30+
println!(
31+
"cargo:rustc-link-search=native={}",
32+
libdir64.to_str().unwrap()
33+
);
2934
let mut debug_suffix = "";
3035
let libname = if target.contains("windows") && target.contains("msvc") {
3136
if env::var("OPT_LEVEL").unwrap() == "0" {

0 commit comments

Comments
 (0)