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
9 Investigation done by David <buildroot-2014@inbox.com>.
11 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 ===================================================================
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
25 - self.add_multiarch_paths()
27 # Add paths specified in the environment variables LDFLAGS and
28 # CPPFLAGS for header and library files.