This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH: Correct mips-t{dump, file}.o getopt.h dependencies


At least since 20050509, mainline failed to bootstrap on alpha-dec-osf5.1b
in stage1:

make[2]: *** No rule to make target `getopt.h', needed by `mips-tfile.o'.  Stop.

This seems to be due to

2005-05-07  Paul Brook  <paul@codesourcery.com>

       * Makefile.in: Fix dependencies.
       (GCOV_IO_H, VARRAY_H): Set.

which added explicit getopt.h dependencies, but "getopt.h" needs
$(srcdir)/../include/getopt.h instead. 

The following trivial patch fixes this.

Bootstrapped on alpha-dec-osf5.1b.

Ok for mainline?

	Rainer

-----------------------------------------------------------------------------
Rainer Orth, Faculty of Technology, Bielefeld University


Fri Jun  3 19:33:39 2005  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>

	* Makefile.in (mips-tfile.o): Add $(srcdir)/../include prefix to
	getopt.h dependency.
	(mips-tdump.o): Likewise.

Index: Makefile.in
===================================================================
RCS file: /cvs/gcc/gcc/gcc/Makefile.in,v
retrieving revision 1.1491
diff -u -p -r1.1491 Makefile.in
--- Makefile.in	25 May 2005 12:33:20 -0000	1.1491
+++ Makefile.in	3 Jun 2005 17:32:51 -0000
@@ -2358,13 +2360,13 @@ mips-tfile: mips-tfile.o version.o $(LIB
 	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ mips-tfile.o version.o $(LIBS)
 
 mips-tfile.o : mips-tfile.c $(CONFIG_H) $(RTL_H) $(SYSTEM_H) coretypes.h \
-   $(TM_H) version.h getopt.h gstab.h intl.h
+   $(TM_H) version.h $(srcdir)/../include/getopt.h gstab.h intl.h
 
 mips-tdump: mips-tdump.o version.o $(LIBDEPS)
 	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ mips-tdump.o version.o $(LIBS)
 
 mips-tdump.o : mips-tdump.c $(CONFIG_H) $(RTL_H) $(SYSTEM_H) coretypes.h \
-   $(TM_H) version.h getopt.h stab.def
+   $(TM_H) version.h $(srcdir)/../include/getopt.h stab.def
 
 # FIXME: writing proper dependencies for this is a *LOT* of work.
 libbackend.o : $(OBJS-common:.o=.c) $(out_file) \


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]