1 From f270af67f4ea6cc781f7cf05ba66e078190368df Mon Sep 17 00:00:00 2001
2 From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
3 Date: Wed, 23 Dec 2015 11:36:27 +0100
4 Subject: [PATCH] Don't add multiarch paths
6 The add_multiarch_paths() function leads, in certain build
7 environments, to the addition of host header paths to the CFLAGS,
8 which is not appropriate for cross-compilation. This patch fixes that
9 by simply removing the call to add_multiarch_paths() when we're
12 Investigation done by David <buildroot-2014@inbox.com>.
14 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
17 1 file changed, 1 insertion(+), 1 deletion(-)
19 diff --git a/setup.py b/setup.py
20 index 1b4b981..9a48d5f 100644
23 @@ -497,10 +497,10 @@ class PyBuildExt(build_ext):
24 if not cross_compiling:
25 add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib')
26 add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
27 + self.add_multiarch_paths()
28 # only change this for cross builds for 3.3, issues on Mageia
31 - self.add_multiarch_paths()
33 # Add paths specified in the environment variables LDFLAGS and
34 # CPPFLAGS for header and library files.