forked from fedora-python/python26
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpython-2.6.6-add-RPATH-to-elementtree.patch
More file actions
20 lines (19 loc) · 1.03 KB
/
python-2.6.6-add-RPATH-to-elementtree.patch
File metadata and controls
20 lines (19 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- setup.py 2013-06-06 07:34:57.722819944 -0400
+++ setup.py.add-RPATH-to-elementtree 2013-06-06 07:43:38.992698883 -0400
@@ -1336,6 +1336,9 @@ class PyBuildExt(build_ext):
# Fredrik Lundh's cElementTree module. Note that this also
# uses expat (via the CAPI hook in pyexpat).
+ # Add an explicit RPATH to _elementtree.so (rhbz#962779)
+ EXPAT_RPATH = '/lib64' if sys.maxint == 0x7fffffffffffffff else '/lib'
+
if os.path.isfile(os.path.join(srcdir, 'Modules', '_elementtree.c')):
define_macros.append(('USE_PYEXPAT_CAPI', None))
exts.append(Extension('_elementtree',
@@ -1343,6 +1346,7 @@ class PyBuildExt(build_ext):
include_dirs = expat_inc,
libraries = expat_lib,
sources = ['_elementtree.c'],
+ extra_link_args = ['-Wl,-rpath,%s' % EXPAT_RPATH]
))
else:
missing.append('_elementtree')