Require OpenSSL 1.1.x library names on Windows

We believe that OpenSSL 1.1.x will fix the threading issues previously
reported with binary builds:

https://github.com/psycopg/psycopg2/issues/543

Require the OpenSSL 1.1.x Windows library names.
This commit is contained in:
Matthew Brett 2019-04-10 11:13:08 +01:00
parent 5e01c47818
commit c9d938e9a8

View File

@ -366,8 +366,14 @@ For further information please check the 'doc/src/install.rst' file (also at
self.library_dirs.append(os.path.join(path, "ms"))
break
if self.have_ssl:
self.libraries.append("libeay32")
self.libraries.append("ssleay32")
# OpenSSL >= 1.1.0 has different library names from 1.0.x
# libeay32 became libcrypto
# ssleay32 became libssl
# We require OpenSSL 1.1.x, to avoid nasty issues
# with threads, see:
# https://github.com/psycopg/psycopg2/issues/543
self.libraries.append("libcrypto")
self.libraries.append("libssl")
self.libraries.append("crypt32")
self.libraries.append("user32")
self.libraries.append("gdi32")