]> git.wh0rd.org Git - elf2flt.git/commitdiff
Create more symlinks to BFD headers
authorAlexey Neyman <stilor@att.net>
Sat, 29 Sep 2018 20:12:08 +0000 (13:12 -0700)
committerMike Frysinger <vapier@gmail.com>
Mon, 18 Feb 2019 07:02:33 +0000 (02:02 -0500)
... diagnostics.h and bfd_stdint.h, included by <bfd/bfd.h>.

Signed-off-by: Alexey Neyman <stilor@att.net>
Makefile.in

index cfad06ca5fbd55a660c31a97f4916db7208071e6..52b3347d7f438f0390120d794125f03796ce540e 100644 (file)
@@ -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