mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-14 21:56:56 +03:00
Allow linking to shared zlib
If compiled as shared library zlib produces `zlib1.dll` and `zdll.lib`.
This commit is contained in:
parent
16372dd951
commit
aae90c3c01
2
setup.py
2
setup.py
|
@ -690,6 +690,8 @@ class pil_build_ext(build_ext):
|
|||
feature.set("zlib", "z")
|
||||
elif sys.platform == "win32" and _find_library_file(self, "zlib"):
|
||||
feature.set("zlib", "zlib") # alternative name
|
||||
elif sys.platform == "win32" and _find_library_file(self, "zdll"):
|
||||
feature.set("zlib", "zdll") # different name if shared
|
||||
|
||||
if feature.want("jpeg"):
|
||||
_dbg("Looking for jpeg")
|
||||
|
|
Loading…
Reference in New Issue
Block a user