Fixed build on win32

Fix #422.
This commit is contained in:
Daniele Varrazzo 2016-07-01 02:23:59 +01:00
parent 7aedc61d41
commit c29b5cd46a

View File

@ -351,6 +351,7 @@ class psycopg_build_ext(build_ext):
self.libraries.append("advapi32")
if self.compiler_is_msvc():
# MSVC requires an explicit "libpq"
if "pq" in self.libraries:
self.libraries.remove("pq")
self.libraries.append("secur32")
self.libraries.append("libpq")