Skip to content

Commit 5f87915

Browse files
authored
bpo-43466: Link with libz in PY_UNSUPPORTED_OPENSSL_BUILD path (GH-25587)
Some OpenSSL build flavors need libz for compression support.
1 parent 666991f commit 5f87915

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2466,7 +2466,8 @@ def split_var(name, sep):
24662466
extra_linker_args.append(f"-Wl,--exclude-libs,lib{lib}.a")
24672467
openssl_extension_kwargs["extra_link_args"] = extra_linker_args
24682468
# don't link OpenSSL shared libraries.
2469-
openssl_extension_kwargs["libraries"] = []
2469+
# include libz for OpenSSL build flavors with compression support
2470+
openssl_extension_kwargs["libraries"] = ["z"]
24702471

24712472
self.add(
24722473
Extension(

0 commit comments

Comments
 (0)