[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 <mcb30@ipxe.org>
pull/234/head
Bernhard M. Wiedemann 2021-01-29 13:41:42 +01:00 committed by Michael Brown
parent 43d72d0087
commit f4fcd000a5
1 changed files with 2 additions and 2 deletions

View File

@ -1156,8 +1156,8 @@ BLIB = $(BIN)/blib.a
$(BLIB) : $(BLIB_OBJS) $(BLIB_LIST) $(MAKEDEPS) $(BLIB) : $(BLIB_OBJS) $(BLIB_LIST) $(MAKEDEPS)
$(Q)$(RM) $(BLIB) $(Q)$(RM) $(BLIB)
$(QM)$(ECHO) " [AR] $@" $(QM)$(ECHO) " [AR] $@"
$(Q)$(AR) r $@ $(sort $(BLIB_OBJS)) $(Q)$(AR) rD $@ $(sort $(BLIB_OBJS))
$(Q)$(RANLIB) $@ $(Q)$(RANLIB) -D $@
blib : $(BLIB) blib : $(BLIB)
# Command to generate build ID. Must be unique for each $(BIN)/%.tmp, # Command to generate build ID. Must be unique for each $(BIN)/%.tmp,