]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[build] Ensure build ID is deterministic
authorBernhard M. Wiedemann <bwiedemann@suse.de>
Sat, 12 Jun 2021 19:55:43 +0000 (21:55 +0200)
committerMichael Brown <mcb30@ipxe.org>
Mon, 14 Jun 2021 13:36:51 +0000 (14:36 +0100)
Commit 040cdd0 ("[linux] Add a prefix to all symbols to avoid future
name collisions") unintentionally reintroduced an element of
non-determinism into the build ID, by omitting the -D option when
manipulating the blib.a archive.

Fix by adding the -D option to restore determinism.

Reworded-by: Michael Brown <mcb30@ipxe.org>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/Makefile.housekeeping

index e017c656bcf6a79635b9398f7087ad6fbf6b03df..9be7e7e13b15fa7e4256d033a286974e02bf4ad9 100644 (file)
@@ -1167,7 +1167,7 @@ $(BLIB) : $(BLIB_OBJS) $(BLIB_LIST) $(MAKEDEPS)
        $(Q)$(RM) $(BLIB)
        $(QM)$(ECHO) "  [AR] $@"
        $(Q)$(AR) rD $@ $(sort $(BLIB_OBJS))
-       $(Q)$(OBJCOPY) --prefix-symbols=$(SYMBOL_PREFIX) $@
+       $(Q)$(OBJCOPY) -D --prefix-symbols=$(SYMBOL_PREFIX) $@
        $(Q)$(RANLIB) -D $@
 blib : $(BLIB)