diff --git a/build_zng.rs b/build_zng.rs index c6211e3e..25576253 100644 --- a/build_zng.rs +++ b/build_zng.rs @@ -22,10 +22,15 @@ pub fn build_zlib_ng(target: &str, compat: bool) { let includedir = install_dir.join("include"); let libdir = install_dir.join("lib"); + let libdir64 = install_dir.join("lib64"); println!( "cargo:rustc-link-search=native={}", libdir.to_str().unwrap() ); + println!( + "cargo:rustc-link-search=native={}", + libdir64.to_str().unwrap() + ); let mut debug_suffix = ""; let libname = if target.contains("windows") && target.contains("msvc") { if env::var("OPT_LEVEL").unwrap() == "0" {