blob: 2bc8b8c460da179316088c3e8ea6280f402fb8fc [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001From 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
33