0003-Makefile-fix-build-with-Binutils-2.31.patch 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. From faf1a1646093fbc5ed279bae1c7250c7dfea56f8 Mon Sep 17 00:00:00 2001
  2. From: Romain Naour <romain.naour@smile.fr>
  3. Date: Tue, 17 Jul 2018 16:36:16 +0200
  4. Subject: [PATCH] Makefile: fix build with Binutils 2.31
  5. Binutils added diagnostics.h to bfd.h [1], so elf2flt must create a symlink
  6. for this header.
  7. Fixes:
  8. https://gitlab.com/free-electrons/toolchains-builder/-/jobs/82284139
  9. [1] https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commitdiff;h=95da9854466ada2572b42f5528711a06a2d42db1
  10. Signed-off-by: Romain Naour <romain.naour@smile.fr>
  11. ---
  12. Makefile.in | 2 +-
  13. 1 file changed, 1 insertion(+), 1 deletion(-)
  14. diff --git a/Makefile.in b/Makefile.in
  15. index cfad06c..164e306 100644
  16. --- a/Makefile.in
  17. +++ b/Makefile.in
  18. @@ -127,7 +127,7 @@ bfd-headers/.stamp:
  19. rm -rf bfd-headers
  20. mkdir bfd-headers
  21. ln -sf $(BFD_INCLUDE_DIR)/bfd.h bfd-headers/bfd.h
  22. - for f in ansidecl filenames hashtab libiberty symcat; do \
  23. + for f in ansidecl diagnostics filenames hashtab libiberty symcat; do \
  24. ln -sf $(BINUTILS_INCLUDE_DIR)/$$f.h bfd-headers/$$f.h || exit 1; \
  25. done
  26. ln -sf $(BINUTILS_INCLUDE_DIR)/elf bfd-headers/elf
  27. --
  28. 2.7.4