An interpreted, interactive, object-oriented programming language
CentOS Sources
2017-08-01 71084d584ff953f5463757ec6536406320560b4d
commit | author | age
6e8c2f 1 diff -up Python-2.6.4/Lib/distutils/unixccompiler.py.distutils-rpath Python-2.6.4/Lib/distutils/unixccompiler.py
CB 2 --- Python-2.6.4/Lib/distutils/unixccompiler.py.distutils-rpath    2009-09-09 04:34:06.000000000 -0400
3 +++ Python-2.6.4/Lib/distutils/unixccompiler.py    2010-03-15 21:33:25.000000000 -0400
4 @@ -142,6 +142,16 @@ class UnixCCompiler(CCompiler):
5      if sys.platform == "cygwin":
6          exe_extension = ".exe"
7  
8 +    def _fix_lib_args(self, libraries, library_dirs, runtime_library_dirs):
9 +        """Remove standard library path from rpath"""
10 +        libraries, library_dirs, runtime_library_dirs = \
11 +            CCompiler._fix_lib_args(self, libraries, library_dirs,
12 +                                    runtime_library_dirs)
13 +        libdir = sysconfig.get_config_var('LIBDIR')
14 +        if runtime_library_dirs and (libdir in runtime_library_dirs):
15 +            runtime_library_dirs.remove(libdir)
16 +        return libraries, library_dirs, runtime_library_dirs
17 +
18      def preprocess(self, source,
19                     output_file=None, macros=None, include_dirs=None,
20                     extra_preargs=None, extra_postargs=None):