The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / python3 / 012-dont-add-multiarch-path.patch
1 Don't add multiarch paths
2
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.
8
9 Investigation done by David <buildroot-2014@inbox.com>.
10
11 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
12
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()
26  
27          # Add paths specified in the environment variables LDFLAGS and
28          # CPPFLAGS for header and library files.