[pushed] genversion should depend on DATESTAMP

Message ID 3c7c5ff9-b278-0f3c-1577-1a83d34521ec@suse.cz
State New
Headers show
Series
  • [pushed] genversion should depend on DATESTAMP
Related show

Commit Message

Martin Liška May 18, 2021, 8 a.m.
Tested that locally with Ada and other languages.

Pushed to master,
Martin

gcc/ChangeLog:

	* Makefile.in: genversion.o should depend on DATESTAMP.
---
  gcc/Makefile.in | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.31.1

Patch

diff --git a/gcc/Makefile.in b/gcc/Makefile.in
index 1b5d3f4696c..1164554e6d6 100644
--- a/gcc/Makefile.in
+++ b/gcc/Makefile.in
@@ -3030,7 +3030,7 @@  CFLAGS-build/genversion.o += -DBASEVER=$(BASEVER_s) -DDATESTAMP=$(DATESTAMP_s) \
  	-DDEVPHASE=$(DEVPHASE_s) -DPKGVERSION=$(PKGVERSION_s) \
  	-DBUGURL=$(BUGURL_s)
  
-build/genversion.o: genversion.c $(BCONFIG_H) $(SYSTEM_H)
+build/genversion.o: genversion.c $(BCONFIG_H) $(SYSTEM_H) $(srcdir)/DATESTAMP
  
  build/genversion$(build_exeext): build/genversion.o
  	+$(LINKER_FOR_BUILD) $(BUILD_LINKERFLAGS) $(BUILD_LDFLAGS) \