|
|
93c559 |
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
93c559 |
From: David Malcolm <dmalcolm@redhat.com>
|
|
|
93c559 |
Date: Wed, 13 Jan 2010 21:25:18 +0000
|
|
|
93c559 |
Subject: [PATCH] 00001: Fixup distutils/unixccompiler.py to remove standard
|
|
|
93c559 |
library path from rpath Was Patch0 in ivazquez' python3000 specfile
|
|
|
93c559 |
|
|
|
93c559 |
---
|
|
|
93c559 |
Lib/distutils/unixccompiler.py | 9 +++++++++
|
|
|
93c559 |
1 file changed, 9 insertions(+)
|
|
|
93c559 |
|
|
|
93c559 |
diff --git a/Lib/distutils/unixccompiler.py b/Lib/distutils/unixccompiler.py
|
|
|
93c559 |
index f0792de74a..4d837936c6 100644
|
|
|
93c559 |
--- a/Lib/distutils/unixccompiler.py
|
|
|
93c559 |
+++ b/Lib/distutils/unixccompiler.py
|
|
|
93c559 |
@@ -82,6 +82,15 @@ class UnixCCompiler(CCompiler):
|
|
|
93c559 |
if sys.platform == "cygwin":
|
|
|
93c559 |
exe_extension = ".exe"
|
|
|
93c559 |
|
|
|
93c559 |
+ def _fix_lib_args(self, libraries, library_dirs, runtime_library_dirs):
|
|
|
93c559 |
+ """Remove standard library path from rpath"""
|
|
|
93c559 |
+ libraries, library_dirs, runtime_library_dirs = super()._fix_lib_args(
|
|
|
93c559 |
+ libraries, library_dirs, runtime_library_dirs)
|
|
|
93c559 |
+ libdir = sysconfig.get_config_var('LIBDIR')
|
|
|
93c559 |
+ if runtime_library_dirs and (libdir in runtime_library_dirs):
|
|
|
93c559 |
+ runtime_library_dirs.remove(libdir)
|
|
|
93c559 |
+ return libraries, library_dirs, runtime_library_dirs
|
|
|
93c559 |
+
|
|
|
93c559 |
def preprocess(self, source, output_file=None, macros=None,
|
|
|
93c559 |
include_dirs=None, extra_preargs=None, extra_postargs=None):
|
|
|
93c559 |
fixed_args = self._fix_compile_args(None, macros, include_dirs)
|