File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -39,19 +39,19 @@ pub fn build_zlib_ng(target: &str, compat: bool) {
39
39
cmake. define ( "CMAKE_GENERATOR_PLATFORM" , "Win32" ) ;
40
40
}
41
41
42
+ // libz-ng uses the GNUInstallDirs convention, so we can use the following
43
+ // to ensure libraries are placed in a consistent place in the
44
+ // installation dir.
45
+ cmake. define ( "CMAKE_INSTALL_LIBDIR" , "lib" ) ;
46
+
42
47
let install_dir = cmake. build ( ) ;
43
48
44
49
let includedir = install_dir. join ( "include" ) ;
45
50
let libdir = install_dir. join ( "lib" ) ;
46
- let libdir64 = install_dir. join ( "lib64" ) ;
47
51
println ! (
48
52
"cargo:rustc-link-search=native={}" ,
49
53
libdir. to_str( ) . unwrap( )
50
54
) ;
51
- println ! (
52
- "cargo:rustc-link-search=native={}" ,
53
- libdir64. to_str( ) . unwrap( )
54
- ) ;
55
55
let mut debug_suffix = "" ;
56
56
let libname = if target. contains ( "windows" ) && target. contains ( "msvc" ) {
57
57
if env:: var ( "OPT_LEVEL" ) . unwrap ( ) == "0" {
You can’t perform that action at this time.
0 commit comments