Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | From 43238e1ac13e32984d015c92a5841f3de1fe1d15 Mon Sep 17 00:00:00 2001 |
| 2 | From: Jackie Huang <jackie.huang@windriver.com> |
| 3 | Date: Tue, 18 Nov 2014 00:07:07 -0500 |
| 4 | Subject: [PATCH] setup.py: no host headers libs |
| 5 | |
| 6 | When we are cross-compiling, setup.py should never look in /usr |
| 7 | or /usr/local to find headers or libraries. |
| 8 | |
| 9 | Upstream-Status: Inappropriate [Cross compile specific] |
| 10 | |
| 11 | Signed-off-by: Jackie Huang <jackie.huang@windriver.com> |
| 12 | --- |
| 13 | setup.py | 3 --- |
| 14 | 1 file changed, 3 deletions(-) |
| 15 | |
| 16 | diff --git a/setup.py b/setup.py |
| 17 | index 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 | -- |
| 32 | 2.0.0 |
| 33 | |