From: Alexey Neyman Date: Sat, 29 Sep 2018 20:12:08 +0000 (-0700) Subject: Create more symlinks to BFD headers X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=429521f695c6f4212d809a141bfa4417b733f395;p=elf2flt.git Create more symlinks to BFD headers ... diagnostics.h and bfd_stdint.h, included by . Signed-off-by: Alexey Neyman --- diff --git a/Makefile.in b/Makefile.in index cfad06c..52b3347 100644 --- a/Makefile.in +++ b/Makefile.in @@ -123,11 +123,16 @@ sinclude .deps $(CC) -MM $(CPPFLAGS) $(srcdir)/*.c > .deps +# Some versions of binutils may not have all these headers (diagnostics.h +# appeared in binutils 2.31; bfd_stdint.h in 2.32) so some symlinks may be +# dangling. bfd-headers/.stamp: rm -rf bfd-headers mkdir bfd-headers - ln -sf $(BFD_INCLUDE_DIR)/bfd.h bfd-headers/bfd.h - for f in ansidecl filenames hashtab libiberty symcat; do \ + for f in bfd bfd_stdint; do \ + ln -sf $(BFD_INCLUDE_DIR)/$$f.h bfd-headers/$$f.h || exit 1; \ + done + for f in ansidecl diagnostics filenames hashtab libiberty symcat; do \ ln -sf $(BINUTILS_INCLUDE_DIR)/$$f.h bfd-headers/$$f.h || exit 1; \ done ln -sf $(BINUTILS_INCLUDE_DIR)/elf bfd-headers/elf