This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: The installed binutils is broken.
- To: "H . J . Lu" <hjl at lucon dot org>
- Subject: Re: The installed binutils is broken.
- From: Alan Modra <amodra at bigpond dot net dot au>
- Date: Thu, 4 Oct 2001 15:11:15 +0930
- Cc: binutils at sourceware dot cygnus dot com
- References: <20011003220002.A3031@lucon.org>
On Wed, Oct 03, 2001 at 10:00:02PM -0700, H . J . Lu wrote:
> When you added symcat.h to bfd-in.h, you have to install symcat.h along
> with bfd.h. You also need to add $(INCDIR)/symcat.h to BFD_H_DEPS in
> bfd/Makefile.am. You may also update bfd/dep-in.sed to remove symcat.h.
Done.
* Makefile.am (BFD_H_DEPS): Add symcat.h. Ensure everything
depends on $(BFD_H) $(BFD_H_DEPS) $(LOCAL_H_DEPS), not just those
backends we configure. Run "make dep-am".
(install-data-local): Install symcat.h.
* dep-in.sed: Remove symcat.h from dependencies.
* Makefile.in: Regenerate.
Index: bfd/Makefile.am
===================================================================
RCS file: /cvs/src/src/bfd/Makefile.am,v
retrieving revision 1.65
diff -u -p -r1.65 Makefile.am
--- Makefile.am 2001/10/03 12:29:08 1.65
+++ Makefile.am 2001/10/04 05:31:05
@@ -627,12 +627,13 @@ pepigen.c : peXXigen.c
sed -e s/XX/pep/g < $(srcdir)/peXXigen.c > pepigen.new
mv -f pepigen.new pepigen.c
-BFD_H_DEPS= $(INCDIR)/ansidecl.h
+BFD_H_DEPS= $(INCDIR)/ansidecl.h $(INCDIR)/symcat.h
LOCAL_H_DEPS= libbfd.h sysdep.h config.h
-$(BFD_LIBS): $(BFD_H) $(BFD_H_DEPS) $(LOCAL_H_DEPS)
-$(BFD_MACHINES): $(BFD_H) $(BFD_H_DEPS) $(LOCAL_H_DEPS)
-$(BFD_BACKENDS): $(BFD_H) $(BFD_H_DEPS) $(LOCAL_H_DEPS)
-$(OPTIONAL_BACKENDS): $(BFD_H) $(BFD_H_DEPS) $(LOCAL_H_DEPS)
+$(BFD_LIBS) \
+ $(ALL_MACHINES) \
+ $(BFD32_BACKENDS) \
+ $(BFD64_BACKENDS) \
+ $(OPTIONAL_BACKENDS): $(BFD_H) $(BFD_H_DEPS) $(LOCAL_H_DEPS)
# Install BFD include file, and others that it needs.
install-data-local: $(BFD_H)
@@ -640,6 +641,7 @@ install-data-local: $(BFD_H)
$(mkinstalldirs) $(DESTDIR)$(includedir)
$(INSTALL_DATA) $(BFD_H) $(DESTDIR)$(includedir)/bfd.h
$(INSTALL_DATA) $(INCDIR)/ansidecl.h $(DESTDIR)$(includedir)/ansidecl.h
+ $(INSTALL_DATA) $(INCDIR)/symcat.h $(DESTDIR)$(includedir)/symcat.h
$(INSTALL_DATA) $(INCDIR)/bfdlink.h $(DESTDIR)$(includedir)/bfdlink.h
Makefile: $(srcdir)/configure.in
[dependency changes snipped]
Index: bfd/dep-in.sed
===================================================================
RCS file: /cvs/src/src/bfd/dep-in.sed,v
retrieving revision 1.3
diff -u -p -r1.3 dep-in.sed
--- dep-in.sed 2000/05/02 00:12:46 1.3
+++ dep-in.sed 2001/10/04 05:31:06
@@ -15,6 +15,7 @@ s!@INCDIR@!$(INCDIR)!g
s/ config.h//g
s! \$(INCDIR)/fopen-[^ ]*\.h!!g
s! \$(INCDIR)/ansidecl\.h!!g
+s! \$(INCDIR)/symcat\.h!!g
s/\\\n */ /g