0002-do-not-cross-compile-nsgenbind.patch 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. From 2419ad79b25fcc1746178aba609fddbb0aa8c9e0 Mon Sep 17 00:00:00 2001
  2. From: Francois Perrad <francois.perrad@gadz.org>
  3. Date: Sat, 1 Dec 2018 16:10:13 +0100
  4. Subject: [PATCH] build nsgenbind for the build machine
  5. The nsgenbind tool is meant to be executed on the build machine during
  6. the build, so it should not be built with the cross-compiler, but with
  7. the native compiler.
  8. Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
  9. [Fabrice: add quotes around BUILD_CC to fix build with ccache]
  10. Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  11. ---
  12. Makefile | 2 +-
  13. 1 file changed, 1 insertion(+), 1 deletion(-)
  14. diff --git a/Makefile b/Makefile
  15. index f279f01..5698c87 100644
  16. --- a/Makefile
  17. +++ b/Makefile
  18. @@ -110,7 +110,7 @@ endef
  19. # prefixed install macro for each host sub target
  20. define do_build_prefix_install
  21. - $(MAKE) install --directory=$1 HOST=$(BUILD) PREFIX=$(TMP_PREFIX) Q=$(Q) DESTDIR=
  22. + $(MAKE) install --directory=$1 HOST=$(BUILD) CC="$(BUILD_CC)" PREFIX=$(TMP_PREFIX) Q=$(Q) DESTDIR=
  23. endef
  24. --
  25. 2.17.1