diff --git a/setup.py b/setup.py index ed32093db96..c65b2caf12a 100644 --- a/setup.py +++ b/setup.py @@ -937,7 +937,7 @@ def build_extensions(self) -> None: if feature.get("imagequant"): libs.append(feature.get("imagequant")) if sys.platform == "win32": - libs.extend(["ntdll", "userenv", "ws2_32"]) + libs.extend(["ntdll", "synchronization", "userenv", "ws2_32"]) defs.append(("HAVE_LIBIMAGEQUANT", None)) if feature.get("xcb"): libs.append(feature.get("xcb"))