File link-python.diff of Package python-qt4
Index: PyQt-x11-gpl-4.4.4/configure.py
===================================================================
--- PyQt-x11-gpl-4.4.4.orig/configure.py
+++ PyQt-x11-gpl-4.4.4/configure.py
@@ -983,6 +983,8 @@ def add_makefile_extras(makefile, extra_
if extra_libs:
makefile.extra_libs.extend(extra_libs)
+ for lib in os.popen("python-config --libs").read().split():
+ makefile.extra_libs.append(lib.replace('-l', ''))
def check_vendorid():
"""See if the VendorID library and include file can be found.