Fixed --have_ssl command line parameter

Added initialization of have_ssl variable so passing --have_ssl on the
command line works.
This commit is contained in:
Jason Erickson 2009-10-07 23:44:00 -06:00 committed by Federico Di Gregorio
parent ac1b5ce68a
commit b537404487

View File

@ -106,6 +106,8 @@ class psycopg_build_ext(build_ext):
self.use_pg_dll = 1
self.pgdir = None
self.mx_include_dir = None
self.use_pydatetime = 1
self.have_ssl = have_ssl
self.pg_config = self.autodetect_pg_config_path()
@ -184,7 +186,7 @@ class psycopg_build_ext(build_ext):
if os.path.isfile(os.path.join(path, "ms", "libpq.lib")):
self.library_dirs.append(os.path.join(path, "ms"))
break
if have_ssl:
if self.have_ssl:
self.libraries.append("libeay32")
self.libraries.append("ssleay32")
self.libraries.append("user32")