aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2021-06-17 14:32:23 +0100
committerMichael Brown <mcb30@ipxe.org>2021-06-17 14:37:39 +0100
commit51c88a4a62116d77a854b55100c6955d6f1eb6dc (patch)
tree7686f8097d141412eb0992486c260be7abc5cdb0
parentbf4ccd4265ac614fbfa38bf168b6eeaf4c17d51e (diff)
downloadipxe-51c88a4a62116d77a854b55100c6955d6f1eb6dc.zip
ipxe-51c88a4a62116d77a854b55100c6955d6f1eb6dc.tar.gz
ipxe-51c88a4a62116d77a854b55100c6955d6f1eb6dc.tar.bz2
[build] Fix building on broken versions of GNU binutils
Some versions of GNU objcopy (observed with binutils 2.23.52.0.1 on CentOS 7.0.1406) document the -D/--enable-deterministic-archives option but fail to recognise the short form of the option. Work around this problem by using the long form of the option. Reported-by: Olaf Hering <olaf@aepfle.de> Signed-off-by: Michael Brown <mcb30@ipxe.org>
-rw-r--r--src/Makefile.housekeeping3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Makefile.housekeeping b/src/Makefile.housekeeping
index 9be7e7e..0deb15c 100644
--- a/src/Makefile.housekeeping
+++ b/src/Makefile.housekeeping
@@ -1167,7 +1167,8 @@ $(BLIB) : $(BLIB_OBJS) $(BLIB_LIST) $(MAKEDEPS)
$(Q)$(RM) $(BLIB)
$(QM)$(ECHO) " [AR] $@"
$(Q)$(AR) rD $@ $(sort $(BLIB_OBJS))
- $(Q)$(OBJCOPY) -D --prefix-symbols=$(SYMBOL_PREFIX) $@
+ $(Q)$(OBJCOPY) --enable-deterministic-archives \
+ --prefix-symbols=$(SYMBOL_PREFIX) $@
$(Q)$(RANLIB) -D $@
blib : $(BLIB)