It's a nice property to have. They also use --enable-deterministic-archives, so do that too.
17 lines
671 B
Diff
17 lines
671 B
Diff
Description: Make DLL import libraries reproducible
|
|
Author: Benjamin Moody <benjamin.moody@gmail.com>
|
|
Bug-Debian: https://bugs.debian.org/915055
|
|
|
|
Index: binutils-mingw-w64/upstream/ld/pe-dll.c
|
|
===================================================================
|
|
--- binutils-mingw-w64.orig/upstream/ld/pe-dll.c 2020-07-09 14:54:20.876479887 +0200
|
|
+++ binutils-mingw-w64/upstream/ld/pe-dll.c 2020-07-09 14:54:20.872479808 +0200
|
|
@@ -2870,6 +2870,7 @@
|
|
|
|
bfd_set_format (outarch, bfd_archive);
|
|
outarch->has_armap = 1;
|
|
+ outarch->flags |= BFD_DETERMINISTIC_OUTPUT;
|
|
|
|
/* Work out a reasonable size of things to put onto one line. */
|
|
ar_head = make_head (outarch);
|