logrotate: enable selinux support
[buildroot-gz.git] / package / python / 013-dont-add-multiarch-path.patch
blob94fcb0f7fb2b0297f44d57d19409a21bcb134844
1 Don't add multiarch paths
3 The add_multiarch_paths() function leads, in certain build
4 environments, to the addition of host header paths to the CFLAGS,
5 which is not appropriate for cross-compilation. This patch fixes that
6 by simply removing the call to add_multiarch_paths() when we're
7 cross-compiling.
9 Investigation done by David <buildroot-2014@inbox.com>.
11 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
13 Index: b/setup.py
14 ===================================================================
15 --- a/setup.py
16 +++ b/setup.py
17 @@ -445,9 +445,9 @@
18 if not cross_compiling:
19 add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib')
20 add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
21 + self.add_multiarch_paths()
22 if cross_compiling:
23 self.add_gcc_paths()
24 - self.add_multiarch_paths()
26 # Add paths specified in the environment variables LDFLAGS and
27 # CPPFLAGS for header and library files.