diff options
Diffstat (limited to 'meta/recipes-devtools/python/python/host_include_contamination.patch')
-rw-r--r-- | meta/recipes-devtools/python/python/host_include_contamination.patch | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/meta/recipes-devtools/python/python/host_include_contamination.patch b/meta/recipes-devtools/python/python/host_include_contamination.patch index 62cb8b16da..e0aafb218b 100644 --- a/meta/recipes-devtools/python/python/host_include_contamination.patch +++ b/meta/recipes-devtools/python/python/host_include_contamination.patch | |||
@@ -12,16 +12,17 @@ so we add a check here. | |||
12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
13 | Upstream-Status: Pending | 13 | Upstream-Status: Pending |
14 | 14 | ||
15 | Index: Python-2.7.2/setup.py | 15 | |
16 | =================================================================== | 16 | diff --git a/setup.py b/setup.py |
17 | --- Python-2.7.2.orig/setup.py 2012-02-03 12:10:42.307057756 -0800 | 17 | index ba2d242..bf859be 100644 |
18 | +++ Python-2.7.2/setup.py 2012-02-03 12:11:12.363059210 -0800 | 18 | --- a/setup.py |
19 | @@ -360,6 +360,8 @@ | 19 | +++ b/setup.py |
20 | # https://wiki.ubuntu.com/MultiarchSpec | 20 | @@ -393,6 +393,8 @@ class PyBuildExt(build_ext): |
21 | |||
21 | if not find_executable('dpkg-architecture'): | 22 | if not find_executable('dpkg-architecture'): |
22 | return | 23 | return |
23 | + if os.environ.get('CROSS_COMPILE') is not None: | 24 | + if os.environ.get('CROSS_COMPILE') is not None: |
24 | + return | 25 | + return |
25 | tmpfile = os.path.join(self.build_temp, 'multiarch') | 26 | opt = '' |
26 | if not os.path.exists(self.build_temp): | 27 | if cross_compiling: |
27 | os.makedirs(self.build_temp) | 28 | opt = '-t' + sysconfig.get_config_var('HOST_GNU_TYPE') |