0008-efi-wrapper-build-it-with-the-host-toolchain.patch 892 B

123456789101112131415161718192021222324252627282930313233
  1. From ca8aaded0c7c3900397029bd9520132b62629308 Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Beno=C3=AEt=20Allard?= <benoit.allard@greenbone.net>
  3. Date: Mon, 12 Jun 2017 14:59:16 +0200
  4. Subject: [PATCH] efi/wrapper: build it with the host toolchain.
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. The wrapper program is executed on the build machine, so it should be
  9. built with CC_FOR_BUILD.
  10. Signed-off-by: Benoît Allard <benoit.allard@greenbone.net>
  11. ---
  12. efi/Makefile | 2 +-
  13. 1 file changed, 1 insertion(+), 1 deletion(-)
  14. diff --git a/efi/Makefile b/efi/Makefile
  15. index d5443bd5..d24d16db 100644
  16. --- a/efi/Makefile
  17. +++ b/efi/Makefile
  18. @@ -79,7 +79,7 @@ syslinux.so: $(OBJS) $(CORE_OBJS) $(LIB_OBJS)
  19. # cp $^ $@
  20. wrapper: wrapper.c
  21. - $(CC) $^ -o $@
  22. + $(CC_FOR_BUILD) $^ -o $@
  23. #
  24. # Build the wrapper app and wrap our .so to produce a .efi
  25. --
  26. 2.13.3