package/dhcp/S80dhcp-server: allow empty INTERFACES
[buildroot-gz.git] / package / python3 / 012-dont-add-multiarch-path.patch
blobf32372c78f3d72a614d51e4123e8ef6f999f30eb
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 @@ -456,10 +456,10 @@
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 # only change this for cross builds for 3.3, issues on Mageia
23 if cross_compiling:
24 self.add_gcc_paths()
25 - self.add_multiarch_paths()
27 # Add paths specified in the environment variables LDFLAGS and
28 # CPPFLAGS for header and library files.