0005-Don-t-add-multiarch-paths.patch 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. From 3e953e494570ddb78823d12f66dae1759f4780a3 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
  5. The add_multiarch_paths() function leads, in certain build
  6. environments, to the addition of host header paths to the CFLAGS,
  7. which is not appropriate for cross-compilation. This patch fixes that
  8. by simply removing the call to add_multiarch_paths() when we're
  9. cross-compiling.
  10. Investigation done by David <buildroot-2014@inbox.com>.
  11. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  12. ---
  13. setup.py | 2 +-
  14. 1 file changed, 1 insertion(+), 1 deletion(-)
  15. diff --git a/setup.py b/setup.py
  16. index b283ea3aeed..585dd43828d 100644
  17. --- a/setup.py
  18. +++ b/setup.py
  19. @@ -853,10 +853,10 @@ def configure_compiler(self):
  20. if not CROSS_COMPILING:
  21. add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib')
  22. add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
  23. + self.add_multiarch_paths()
  24. # only change this for cross builds for 3.3, issues on Mageia
  25. if CROSS_COMPILING:
  26. self.add_cross_compiling_paths()
  27. - self.add_multiarch_paths()
  28. self.add_ldflags_cppflags()
  29. def init_inc_lib_dirs(self):
  30. --
  31. 2.44.0