summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python/python3/python3-setup.py-no-host-headers-libs.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/python/python3/python3-setup.py-no-host-headers-libs.patch')
-rw-r--r--meta/recipes-devtools/python/python3/python3-setup.py-no-host-headers-libs.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/meta/recipes-devtools/python/python3/python3-setup.py-no-host-headers-libs.patch b/meta/recipes-devtools/python/python3/python3-setup.py-no-host-headers-libs.patch
new file mode 100644
index 0000000000..8b6476037f
--- /dev/null
+++ b/meta/recipes-devtools/python/python3/python3-setup.py-no-host-headers-libs.patch
@@ -0,0 +1,32 @@
1From 43238e1ac13e32984d015c92a5841f3de1fe1d15 Mon Sep 17 00:00:00 2001
2From: Jackie Huang <jackie.huang@windriver.com>
3Date: Tue, 18 Nov 2014 00:07:07 -0500
4Subject: [PATCH] setup.py: no host headers libs
5
6When we are cross-compiling, setup.py should never look in /usr
7or /usr/local to find headers or libraries.
8
9Upstream-Status: Inappropriate [Cross compile specific]
10
11Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
12---
13 setup.py | 3 ---
14 1 file changed, 3 deletions(-)
15
16diff --git a/setup.py b/setup.py
17index f020b28..e8339cd 100644
18--- a/setup.py
19+++ b/setup.py
20@@ -444,10 +444,7 @@ class PyBuildExt(build_ext):
21 if not cross_compiling:
22 add_dir_to_list(self.compiler.library_dirs, os.path.join('/usr/local', sys.lib))
23 add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
24- # only change this for cross builds for 3.3, issues on Mageia
25- if cross_compiling:
26 self.add_gcc_paths()
27- if not cross_compiling:
28 self.add_multiarch_paths()
29
30 # Add paths specified in the environment variables LDFLAGS and
31--
322.0.0