diff options
Diffstat (limited to 'dev-lang/python/files/python-2.5.2-cross-distutils.patch')
-rw-r--r-- | dev-lang/python/files/python-2.5.2-cross-distutils.patch | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/dev-lang/python/files/python-2.5.2-cross-distutils.patch b/dev-lang/python/files/python-2.5.2-cross-distutils.patch index f23c226..d75144f 100644 --- a/dev-lang/python/files/python-2.5.2-cross-distutils.patch +++ b/dev-lang/python/files/python-2.5.2-cross-distutils.patch @@ -50,14 +50,17 @@ target system is 32 or 64bit and adapt the libdir accordingly. return libpython else: ---- Lib/distutils/command/build_ext.py 2007-04-24 17:27:25.000000000 +0200 -+++ Lib/distutils/command/build_ext.py.new 2009-02-18 20:32:09.000000000 +0100 -@@ -201,7 +201,8 @@ +--- Lib/distutils/command/build_ext.py 2009-03-02 18:54:19.000000000 +0000 ++++ Lib/distutils/command/build_ext.py.new 2009-03-02 18:53:54.000000000 +0000 +@@ -201,7 +201,11 @@ and sysconfig.get_config_var('Py_ENABLE_SHARED'): if sys.executable.startswith(os.path.join(sys.exec_prefix, "bin")): # building third party extensions - self.library_dirs.append(sysconfig.get_config_var('LIBDIR')) + sysroot = os.getenv('SYSROOT') ++ if sysroot is NONE: ++ sysroot = '' ++ + self.library_dirs.append(sysroot+sysconfig.get_config_var('LIBDIR')) else: # building python standard extensions |