diff options
author | Olaf Hering <olaf@aepfle.de> | 2015-02-02 14:54:12 +0100 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2015-02-12 09:43:02 +0000 |
commit | 335a7ddcd4e2d0faaee6d5b1edf0307dfba3d0e5 (patch) | |
tree | 5bce56ebe1635e9dbd243a1dfa38706b5938abc6 /src/Makefile.housekeeping | |
parent | 6fe8f80418c71b4d05b7de362db9f142690d1a57 (diff) | |
download | ipxe-335a7ddcd4e2d0faaee6d5b1edf0307dfba3d0e5.zip ipxe-335a7ddcd4e2d0faaee6d5b1edf0307dfba3d0e5.tar.gz ipxe-335a7ddcd4e2d0faaee6d5b1edf0307dfba3d0e5.tar.bz2 |
[build] Sort objects in blib.a
When building hvmloader for Xen tools the iPXE objects are also linked
into the binary. Unfortunately the linker will place them in the
order found in the archive. Since this order is random the resulting
hvmloader binary differs when it was built from identical sources but
on different build hosts. To help with creating a reproducible binary
the elements in blib.a must simply be sorted before passing them to
$(AR).
Signed-off-by: Olaf Hering <olaf@aepfle.de>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/Makefile.housekeeping')
-rw-r--r-- | src/Makefile.housekeeping | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Makefile.housekeeping b/src/Makefile.housekeeping index 1a75d39..e1cdee6 100644 --- a/src/Makefile.housekeeping +++ b/src/Makefile.housekeeping @@ -1012,7 +1012,7 @@ BLIB = $(BIN)/blib.a $(BLIB) : $(BLIB_OBJS) $(BLIB_LIST) $(MAKEDEPS) $(Q)$(RM) $(BLIB) $(QM)$(ECHO) " [AR] $@" - $(Q)$(AR) r $@ $(BLIB_OBJS) + $(Q)$(AR) r $@ $(sort $(BLIB_OBJS)) $(Q)$(RANLIB) $@ blib : $(BLIB) |