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