--- Ft/Lib/DistExt/BuildExt.py.orig 2006-12-29 00:09:54.000000000 +0100 +++ Ft/Lib/DistExt/BuildExt.py 2006-12-29 00:10:37.000000000 +0100 @@ -61,6 +61,8 @@ if (sys.platform.startswith('linux') and sysconfig.get_config_var('Py_ENABLE_SHARED')): libpl, ldlibrary = sysconfig.get_config_vars('LIBPL', 'LDLIBRARY') + if libpl not in self.library_dirs: + libpl = os.path.join(sys.prefix, 'lib', 'python' + sys.version[:3], 'config') if libpl in self.library_dirs: if not os.path.exists(os.path.join(libpl, ldlibrary)): self.library_dirs.remove(libpl)