aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard M. Wiedemann <bwiedemann@suse.de>2021-06-12 21:55:43 +0200
committerMichael Brown <mcb30@ipxe.org>2021-06-14 14:36:51 +0100
commitbf4ccd4265ac614fbfa38bf168b6eeaf4c17d51e (patch)
tree26e41a842e1d871a27cac99c9053993edc9344db
parent3c040ad387099483102708bb1839110bc788cefb (diff)
downloadipxe-bf4ccd4265ac614fbfa38bf168b6eeaf4c17d51e.zip
ipxe-bf4ccd4265ac614fbfa38bf168b6eeaf4c17d51e.tar.gz
ipxe-bf4ccd4265ac614fbfa38bf168b6eeaf4c17d51e.tar.bz2
[build] Ensure build ID is deterministic
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>
-rw-r--r--src/Makefile.housekeeping2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Makefile.housekeeping b/src/Makefile.housekeeping
index e017c65..9be7e7e 100644
--- a/src/Makefile.housekeeping
+++ b/src/Makefile.housekeeping
@@ -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)