Skip to content

Commit

Permalink
Create more symlinks to BFD headers
Browse files Browse the repository at this point in the history
... diagnostics.h and bfd_stdint.h, included by <bfd/bfd.h>.

Signed-off-by: Alexey Neyman <stilor@att.net>
  • Loading branch information
stilor authored and vapier committed Feb 18, 2019
1 parent f544c4d commit 429521f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 429521f

Please sign in to comment.