Hi!

I've noticed that the automatic dependencies changes resulted
in version.o not being recompiled for months.  The problem is
that the automatic dependencies obviously record only dependencies
on version.c and version.h, but not about all the other files
because for those the Makefile runs cat on the files and includes
them as strings through -DFOO="..." options.

Fixed thusly, committed as obvious:

2013-12-16  Jakub Jelinek  <ja...@redhat.com>

        * Makefile.in (version.o): Restore dependencies on
        $(REVISION), $(DATESTAMP), $(BASEVER) and $(DEVPHASE).

--- gcc/Makefile.in.jj  2013-11-22 21:03:16.000000000 +0100
+++ gcc/Makefile.in     2013-12-16 11:50:20.667029445 +0100
@@ -1983,6 +1983,7 @@ CFLAGS-version.o += -DBASEVER=$(BASEVER_
        -DREVISION=$(REVISION_s) \
        -DDEVPHASE=$(DEVPHASE_s) -DPKGVERSION=$(PKGVERSION_s) \
        -DBUGURL=$(BUGURL_s)
+version.o: $(REVISION) $(DATESTAMP) $(BASEVER) $(DEVPHASE)
 
 # lto-compress.o needs $(ZLIBINC) added to the include flags.
 CFLAGS-lto-compress.o += $(ZLIBINC)


        Jakub

Reply via email to