]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[build] Drop timestamps from .a file
authorBernhard M. Wiedemann <bwiedemann@suse.de>
Fri, 29 Jan 2021 12:41:42 +0000 (13:41 +0100)
committerMichael Brown <mcb30@ipxe.org>
Fri, 29 Jan 2021 14:55:11 +0000 (14:55 +0000)
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>
src/Makefile.housekeeping

index cac6efcfd12e8a1873c487e043c176a60e3d4ae7..1155a0e80fb7e35bf67ef0ad35e6a065e1c5b3a7 100644 (file)
@@ -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,