Blame SOURCES/python-2.6.4-distutils-rpath.patch

ae2451
diff -up Python-2.6.4/Lib/distutils/unixccompiler.py.distutils-rpath Python-2.6.4/Lib/distutils/unixccompiler.py
ae2451
--- Python-2.6.4/Lib/distutils/unixccompiler.py.distutils-rpath	2009-09-09 04:34:06.000000000 -0400
ae2451
+++ Python-2.6.4/Lib/distutils/unixccompiler.py	2010-03-15 21:33:25.000000000 -0400
ae2451
@@ -142,6 +142,16 @@ class UnixCCompiler(CCompiler):
ae2451
     if sys.platform == "cygwin":
ae2451
         exe_extension = ".exe"
ae2451
 
ae2451
+    def _fix_lib_args(self, libraries, library_dirs, runtime_library_dirs):
ae2451
+        """Remove standard library path from rpath"""
ae2451
+        libraries, library_dirs, runtime_library_dirs = \
ae2451
+            CCompiler._fix_lib_args(self, libraries, library_dirs,
ae2451
+                                    runtime_library_dirs)
ae2451
+        libdir = sysconfig.get_config_var('LIBDIR')
ae2451
+        if runtime_library_dirs and (libdir in runtime_library_dirs):
ae2451
+            runtime_library_dirs.remove(libdir)
ae2451
+        return libraries, library_dirs, runtime_library_dirs
ae2451
+
ae2451
     def preprocess(self, source,
ae2451
                    output_file=None, macros=None, include_dirs=None,
ae2451
                    extra_preargs=None, extra_postargs=None):