From f4fcd000a562c790398d6001f2fcf571c7a83348 Mon Sep 17 00:00:00 2001 From: "Bernhard M. Wiedemann" Date: Fri, 29 Jan 2021 13:41:42 +0100 Subject: [PATCH] [build] Drop timestamps from .a file Make the contents of $(BLIB) deterministic to allow it to be subsequently used for calculating a build ID. Signed-off-by: Michael Brown --- src/Makefile.housekeeping | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Makefile.housekeeping b/src/Makefile.housekeeping index cac6efcfd..1155a0e80 100644 --- a/src/Makefile.housekeeping +++ b/src/Makefile.housekeeping @@ -1156,8 +1156,8 @@ BLIB = $(BIN)/blib.a $(BLIB) : $(BLIB_OBJS) $(BLIB_LIST) $(MAKEDEPS) $(Q)$(RM) $(BLIB) $(QM)$(ECHO) " [AR] $@" - $(Q)$(AR) r $@ $(sort $(BLIB_OBJS)) - $(Q)$(RANLIB) $@ + $(Q)$(AR) rD $@ $(sort $(BLIB_OBJS)) + $(Q)$(RANLIB) -D $@ blib : $(BLIB) # Command to generate build ID. Must be unique for each $(BIN)/%.tmp,