summaryrefslogtreecommitdiffstats
path: root/Python-3.1.1-rpath.patch
diff options
context:
space:
mode:
authorMiro Hrončok <miro@hroncok.cz>2016-08-09 12:36:16 +0200
committerMiro Hrončok <miro@hroncok.cz>2016-09-26 10:20:04 +0200
commite32ce18e762bfad63a243fa6dcb192b3e5ae9588 (patch)
tree52df28be6fe15714554555c8bc772cb67f167dbc /Python-3.1.1-rpath.patch
parentf5845b442d5e3c252df4de7d56bbafe3e8737613 (diff)
downloadpython34-e32ce18e762bfad63a243fa6dcb192b3e5ae9588.tar.gz
python34-e32ce18e762bfad63a243fa6dcb192b3e5ae9588.tar.xz
python34-e32ce18e762bfad63a243fa6dcb192b3e5ae9588.zip
Initial import of Fedora 23 package
Diffstat (limited to 'Python-3.1.1-rpath.patch')
-rw-r--r--Python-3.1.1-rpath.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/Python-3.1.1-rpath.patch b/Python-3.1.1-rpath.patch
new file mode 100644
index 0000000..1493af2
--- /dev/null
+++ b/Python-3.1.1-rpath.patch
@@ -0,0 +1,20 @@
+diff -up Python-3.1.1/Lib/distutils/unixccompiler.py.rpath Python-3.1.1/Lib/distutils/unixccompiler.py
+--- Python-3.1.1/Lib/distutils/unixccompiler.py.rpath 2009-09-04 17:29:34.000000000 -0400
++++ Python-3.1.1/Lib/distutils/unixccompiler.py 2009-09-04 17:49:54.000000000 -0400
+@@ -141,6 +141,16 @@ class UnixCCompiler(CCompiler):
+ if sys.platform == "cygwin":
+ exe_extension = ".exe"
+
++ def _fix_lib_args(self, libraries, library_dirs, runtime_library_dirs):
++ """Remove standard library path from rpath"""
++ libraries, library_dirs, runtime_library_dirs = super(
++ self.__class__, self)._fix_lib_args(libraries, library_dirs,
++ runtime_library_dirs)
++ libdir = sysconfig.get_config_var('LIBDIR')
++ if runtime_library_dirs and (libdir in runtime_library_dirs):
++ runtime_library_dirs.remove(libdir)
++ return libraries, library_dirs, runtime_library_dirs
++
+ def preprocess(self, source, output_file=None, macros=None,
+ include_dirs=None, extra_preargs=None, extra_postargs=None):
+ fixed_args = self._fix_compile_args(None, macros, include_dirs)