Blame SOURCES/00001-rpath.patch
|
|
036b9c |
diff -up Python-3.1.1/Lib/distutils/unixccompiler.py.rpath Python-3.1.1/Lib/distutils/unixccompiler.py
|
|
|
036b9c |
--- Python-3.1.1/Lib/distutils/unixccompiler.py.rpath 2009-09-04 17:29:34.000000000 -0400
|
|
|
036b9c |
+++ Python-3.1.1/Lib/distutils/unixccompiler.py 2009-09-04 17:49:54.000000000 -0400
|
|
|
036b9c |
@@ -141,6 +141,15 @@ class UnixCCompiler(CCompiler):
|
|
|
036b9c |
if sys.platform == "cygwin":
|
|
|
036b9c |
exe_extension = ".exe"
|
|
|
036b9c |
|
|
|
036b9c |
+ def _fix_lib_args(self, libraries, library_dirs, runtime_library_dirs):
|
|
|
036b9c |
+ """Remove standard library path from rpath"""
|
|
|
036b9c |
+ libraries, library_dirs, runtime_library_dirs = super()._fix_lib_args(
|
|
|
036b9c |
+ libraries, library_dirs, runtime_library_dirs)
|
|
|
036b9c |
+ libdir = sysconfig.get_config_var('LIBDIR')
|
|
|
036b9c |
+ if runtime_library_dirs and (libdir in runtime_library_dirs):
|
|
|
036b9c |
+ runtime_library_dirs.remove(libdir)
|
|
|
036b9c |
+ return libraries, library_dirs, runtime_library_dirs
|
|
|
036b9c |
+
|
|
|
036b9c |
def preprocess(self, source, output_file=None, macros=None,
|
|
|
036b9c |
include_dirs=None, extra_preargs=None, extra_postargs=None):
|
|
|
036b9c |
fixed_args = self._fix_compile_args(None, macros, include_dirs)
|