mirror of https://github.com/python/cpython
bpo-43466: Link with libz in PY_UNSUPPORTED_OPENSSL_BUILD path (GH-25587)
Some OpenSSL build flavors need libz for compression support.
This commit is contained in:
parent
666991fc59
commit
5f87915d4a
3
setup.py
3
setup.py
|
@ -2466,7 +2466,8 @@ class PyBuildExt(build_ext):
|
||||||
extra_linker_args.append(f"-Wl,--exclude-libs,lib{lib}.a")
|
extra_linker_args.append(f"-Wl,--exclude-libs,lib{lib}.a")
|
||||||
openssl_extension_kwargs["extra_link_args"] = extra_linker_args
|
openssl_extension_kwargs["extra_link_args"] = extra_linker_args
|
||||||
# don't link OpenSSL shared libraries.
|
# don't link OpenSSL shared libraries.
|
||||||
openssl_extension_kwargs["libraries"] = []
|
# include libz for OpenSSL build flavors with compression support
|
||||||
|
openssl_extension_kwargs["libraries"] = ["z"]
|
||||||
|
|
||||||
self.add(
|
self.add(
|
||||||
Extension(
|
Extension(
|
||||||
|
|
Loading…
Reference in New Issue