diff options
author | Alan Modra <amodra@gmail.com> | 2022-06-01 10:44:01 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2022-06-01 10:52:05 +0930 |
commit | b0de9ed86f3af84fbd636f94a58b9c4ad7f4e743 (patch) | |
tree | 6e69a103f03c961e2b8532cc0898212929311a19 /bfd/Makefile.in | |
parent | 739f950664220bca1dbfa1cac56eafa16ea2c782 (diff) | |
download | binutils-b0de9ed86f3af84fbd636f94a58b9c4ad7f4e743.zip binutils-b0de9ed86f3af84fbd636f94a58b9c4ad7f4e743.tar.gz binutils-b0de9ed86f3af84fbd636f94a58b9c4ad7f4e743.tar.bz2 |
Re: use libiberty xmalloc in bfd/doc/chew.c
We can't use libiberty.a in chew. libiberty is a host library, chew
a build program. Partly revert commit 7273d78f3f7a, instead define
local versions of the libiberty functions. ansidecl.h also isn't
needed.
* doc/chew.c: Don't include libiberty.h or ansidecl.h.
(xmalloc, xrealloc, xstrdup): New functions.
* doc/local.mk (LIBIBERTY): Don't define or use.
* Makefile.in: Regenerate.
Diffstat (limited to 'bfd/Makefile.in')
-rw-r--r-- | bfd/Makefile.in | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bfd/Makefile.in b/bfd/Makefile.in index 53cac75..741e08d 100644 --- a/bfd/Makefile.in +++ b/bfd/Makefile.in @@ -1301,7 +1301,6 @@ doc_bfd_TEXINFOS = $(DOCFILES) doc/bfdsumm.texi AM_MAKEINFOFLAGS = --no-split -I "$(srcdir)/doc" -I doc TEXI2DVI = texi2dvi -I "$(srcdir)/doc" -I doc MKDOC = doc/chew$(EXEEXT_FOR_BUILD) -LIBIBERTY = ../libiberty/libiberty.a # We can't replace these rules with an implicit rule, because # makes without VPATH support couldn't find the .h files in `..'. @@ -2488,7 +2487,7 @@ doc/chew.stamp: $(srcdir)/doc/chew.c doc/$(am__dirstamp) $(AM_V_CCLD)$(CC_FOR_BUILD) -o doc/chw$$$$$(EXEEXT_FOR_BUILD) $(CFLAGS_FOR_BUILD) \ $(LDFLAGS_FOR_BUILD) $(H_CFLAGS) \ -I. -I$(srcdir) -Idoc -I$(srcdir)/../include -I$(srcdir)/../intl -I../intl \ - $(srcdir)/doc/chew.c $(LIBIBERTY) && \ + $(srcdir)/doc/chew.c && \ $(SHELL) $(srcdir)/../move-if-change \ doc/chw$$$$$(EXEEXT_FOR_BUILD) $(MKDOC) && \ touch $@ |