reproducible-buildinfo
authorMatthias Klose <doko@debian.org>
Mon, 19 Oct 2020 09:51:18 +0000 (10:51 +0100)
committerMatthias Klose <doko@debian.org>
Mon, 19 Oct 2020 09:51:18 +0000 (10:51 +0100)
# 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 d3a70b9d3d247913bc7992172ba76e566b7fb6e4..af875c8851116689de7a439e2520cee03101974c 100644 (file)
@@ -785,6 +785,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