reproducible-buildinfo
authorMatthias Klose <doko@debian.org>
Mon, 10 Jan 2022 10:55:59 +0000 (10:55 +0000)
committerMatthias Klose <doko@debian.org>
Mon, 10 Jan 2022 10:55:59 +0000 (10:55 +0000)
# DP: Build getbuildinfo.o with DATE/TIME values when defined

# DP: Build getbuildinfo.o with DATE/TIME values when defined

Gbp-Pq: Name reproducible-buildinfo.diff

Makefile.pre.in

index 0de37da4acf30d4fd9cd510c8488126b01647804..06c712290ffe8f7dcf03d33a302c2928a02eca67 100644 (file)
@@ -794,6 +794,8 @@ Modules/getbuildinfo.o: $(PARSER_OBJS) \
              -DGITVERSION="\"`LC_ALL=C $(GITVERSION)`\"" \
              -DGITTAG="\"`LC_ALL=C $(GITTAG)`\"" \
              -DGITBRANCH="\"`LC_ALL=C $(GITBRANCH)`\"" \
+             $(if $(BUILD_DATE),-DDATE='"$(BUILD_DATE)"') \
+             $(if $(BUILD_TIME),-DTIME='"$(BUILD_TIME)"') \
              -o $@ $(srcdir)/Modules/getbuildinfo.c
 
 Modules/getpath.o: $(srcdir)/Modules/getpath.c Makefile