Merge pull request #8519 from cubanpit/patch-1

Allow linking to zlib import library on Windows
This commit is contained in:
Andrew Murray 2024-11-09 14:08:44 +11:00 committed by GitHub
commit a01c31a1a3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -690,6 +690,8 @@ class pil_build_ext(build_ext):
feature.set("zlib", "z") feature.set("zlib", "z")
elif sys.platform == "win32" and _find_library_file(self, "zlib"): elif sys.platform == "win32" and _find_library_file(self, "zlib"):
feature.set("zlib", "zlib") # alternative name feature.set("zlib", "zlib") # alternative name
elif sys.platform == "win32" and _find_library_file(self, "zdll"):
feature.set("zlib", "zdll") # dll import library
if feature.want("jpeg"): if feature.want("jpeg"):
_dbg("Looking for jpeg") _dbg("Looking for jpeg")