Blob Blame History Raw
diff -up PyQt-x11-gpl-4.2/configure.py.get_python_lib PyQt-x11-gpl-4.2/configure.py
--- PyQt-x11-gpl-4.2/configure.py.get_python_lib	2007-10-03 13:01:40.000000000 -0400
+++ PyQt-x11-gpl-4.2/configure.py	2007-10-03 13:16:00.000000000 -0400
@@ -390,15 +390,16 @@ include(%s)
             else:
                 # Use distutils to get the additional configuration.
                 from distutils.sysconfig import get_config_vars
+                from distutils.sysconfig import get_python_lib
+
                 ducfg = get_config_vars()
 
                 if sys.platform == "darwin":
                     # We need to work out how to specify the right framework
                     # version.
                     link = "-framework Python"
-                elif ("--enable-shared" in ducfg.get("CONFIG_ARGS", "") and
-                      glob.glob("%s/lib/libpython%d.%d*" % (ducfg["prefix"], py_major, py_minor))):
-                    link = "-L%s/lib -lpython%d.%d" % (ducfg["prefix"], py_major, py_minor)
+                elif ("--enable-shared" in ducfg.get("CONFIG_ARGS", "") ): 
+                    link = "-L%s -lpython%d.%d" % (get_python_lib(plat_specific=1, standard_lib=1), py_major, py_minor)
                 else:
                     sipconfig.inform("Qt Designer plugin disabled because Python library is static")
                     enabled = False