From 6d04eb454a418e7e5025f109f3fea8dfc51d9c3e Mon Sep 17 00:00:00 2001 From: Pema Malling Date: Wed, 24 Jan 2024 23:54:58 +0100 Subject: [PATCH 1/2] Fix zlib library name (again) --- build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.rs b/build.rs index 78e9385..fd0fd28 100644 --- a/build.rs +++ b/build.rs @@ -47,7 +47,7 @@ fn lib_names() -> Vec { if build_assimp() && build_zlib() { names.push(Library("zlibstatic", "static")); } else { - names.push(Library("z", "dylib")); + names.push(Library("zlibstatic", "dylib")); } if cfg!(target_os = "linux") { From dbc13c3f4107358633aec738004527fb73d14b6e Mon Sep 17 00:00:00 2001 From: Pema Malling Date: Fri, 26 Jan 2024 23:57:02 +0100 Subject: [PATCH 2/2] Guard on windows --- build.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build.rs b/build.rs index fd0fd28..07584f1 100644 --- a/build.rs +++ b/build.rs @@ -47,7 +47,11 @@ fn lib_names() -> Vec { if build_assimp() && build_zlib() { names.push(Library("zlibstatic", "static")); } else { - names.push(Library("zlibstatic", "dylib")); + if cfg!(target_os = "windows") { + names.push(Library("zlibstatic", "dylib")); + } else { + names.push(Library("z", "dylib")); + } } if cfg!(target_os = "linux") {