Skip to content

Commit c370e11

Browse files
fitzsimgnu-andrew
authored andcommitted
Tools.gmk: Configure binutils with --enable-deterministic-archives
1 parent 3d81d23 commit c370e11

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

make/devkit/Tools.gmk

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,9 @@ endif
445445

446446
# Makefile creation. Simply run configure in build dir.
447447
# Setting CFLAGS to -O2 generates a much faster ld.
448+
# Use --enable-deterministic-archives so that make targets that
449+
# generate "ar" archives, such as "static-libs-image", produce
450+
# deterministic .a files.
448451
$(bfdmakes) \
449452
$(BUILDDIR)/$(binutils_ver)/Makefile \
450453
: $(BINUTILS_CFG)
@@ -459,6 +462,7 @@ $(BUILDDIR)/$(binutils_ver)/Makefile \
459462
--with-sysroot=$(SYSROOT) \
460463
--disable-nls \
461464
--program-prefix=$(TARGET)- \
465+
--enable-deterministic-archives \
462466
--enable-multilib \
463467
--enable-threads \
464468
--enable-plugins \

0 commit comments

Comments
 (0)