aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSaúl Ibarra Corretgé <saghul@gmail.com>2016-10-10 15:57:03 +0200
committerPaul Kehrer <paul.l.kehrer@gmail.com>2016-10-10 15:57:03 +0200
commitcce16ca4b1ee846589cee01a405351dab5a40466 (patch)
tree9077848cbcf127c220675b0129d945b485c9888b /src
parentc3a3ed424a56433a804a5bb8a9341bf6569c53a3 (diff)
downloadcryptography-cce16ca4b1ee846589cee01a405351dab5a40466.tar.gz
cryptography-cce16ca4b1ee846589cee01a405351dab5a40466.tar.bz2
cryptography-cce16ca4b1ee846589cee01a405351dab5a40466.zip
Fix compilation with MinGW (#3191)
Diffstat (limited to 'src')
-rw-r--r--src/_cffi_src/build_openssl.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/_cffi_src/build_openssl.py b/src/_cffi_src/build_openssl.py
index 9b186939..56ee5ea6 100644
--- a/src/_cffi_src/build_openssl.py
+++ b/src/_cffi_src/build_openssl.py
@@ -19,8 +19,11 @@ def _get_openssl_libraries(platform):
os.environ.get("CRYPTOGRAPHY_OSX_NO_LINK_FLAGS")
)
elif platform == "win32":
- return ["libeay32", "ssleay32", "advapi32",
- "crypt32", "gdi32", "user32", "ws2_32"]
+ if compiler_type() == "msvc":
+ libs = ["libeay32", "ssleay32"]
+ else:
+ libs = ["ssl", "crypto"]
+ return libs + ["advapi32", "crypt32", "gdi32", "user32", "ws2_32"]
else:
# In some circumstances, the order in which these libs are
# specified on the linker command-line is significant;