Blob Blame History Raw
diff -rupN sip-4.19.9.dev1805261119/configure.py sip-4.19.9.dev1805261119-new/configure.py
--- sip-4.19.9.dev1805261119/configure.py	2018-05-29 03:30:23.000000000 +0200
+++ sip-4.19.9.dev1805261119-new/configure.py	2018-06-01 21:28:29.274744493 +0200
@@ -303,8 +303,8 @@ def create_config(module, template, macr
         "sip_bin":          os.path.join(sip_bin_dir, "sip"),
         "sip_inc_dir":      sip_inc_dir,
         "sip_mod_dir":      sip_module_dir,
-        "default_bin_dir":  plat_bin_dir,
-        "default_mod_dir":  plat_py_site_dir,
+        "default_bin_dir":  sip_bin_dir,
+        "default_mod_dir":  sip_module_dir,
         "default_sip_dir":  sip_sip_dir,
         "py_version":       py_version,
         "py_inc_dir":       plat_py_inc_dir,
@@ -468,7 +468,8 @@ def create_makefiles(macros):
         if not opts.static:
             # These only need to be correct for Windows.
             debug_suffix = "_d" if opts.debug else ""
-            link_lib_dir = quote("-L" + cfg.py_lib_dir)
+            py_lib = 'python%d.%d' % (sys.version_info.major, sys.version_info.minor)
+            link_lib = "-L" + cfg.py_lib_dir + " -l" + py_lib
 
             pro.write("""
 win32 {
@@ -493,7 +494,7 @@ QMAKE_POST_LINK = $(COPY_FILE) $$PY_MODU
 target.CONFIG = no_check_exist
 target.files = $$PY_MODULE
 """ % (sip_module_base, debug_suffix,
-       link_lib_dir,
+       link_lib,
        sip_module_base))
 
         pro.write("\n")