An interpreted, interactive, object-oriented programming language
CentOS Sources
2017-08-01 71084d584ff953f5463757ec6536406320560b4d
commit | author | age
6e8c2f 1 diff -up Python-2.7.5/setup.py.orig Python-2.7.5/setup.py
CB 2 --- Python-2.7.5/setup.py.orig    2013-11-07 01:36:18.853604232 +0100
3 +++ Python-2.7.5/setup.py    2013-11-07 01:39:22.163305821 +0100
4 @@ -1483,6 +1483,9 @@ class PyBuildExt(build_ext):
5          # Fredrik Lundh's cElementTree module.  Note that this also
6          # uses expat (via the CAPI hook in pyexpat).
7  
8 +        # Add an explicit RPATH to _elementtree.so (rhbz#1019345)
9 +        EXPAT_RPATH = '/usr/lib64' if sys.maxint == 0x7fffffffffffffff else '/usr/lib'
10 +
11          if os.path.isfile(os.path.join(srcdir, 'Modules', '_elementtree.c')):
12              define_macros.append(('USE_PYEXPAT_CAPI', None))
13              exts.append(Extension('_elementtree',
14 @@ -1492,6 +1495,7 @@ class PyBuildExt(build_ext):
15                                    sources = ['_elementtree.c'],
16                                    depends = ['pyexpat.c'] + expat_sources +
17                                        expat_depends,
18 +                                  extra_link_args = ['-Wl,-rpath,%s' % EXPAT_RPATH]
19                                    ))
20          else:
21              missing.append('_elementtree')