blob: 2fb8c64df3703ee46bcf594d29bff07890a86c19 [file] [log] [blame]
Andrew Geissler90fd73c2021-03-05 15:25:55 -06001In order to build deterministic binaries, we need to sort the wildcard expansion
2so the libraries are linked in the same order each time. This fixes reproducibility
3issues within syslinux builds.
4
5Upstream-Status: Pending
6RP 2021/3/1
7
8Index: syslinux-6.04-pre2/mk/lib.mk
9===================================================================
10--- syslinux-6.04-pre2.orig/mk/lib.mk
11+++ syslinux-6.04-pre2/mk/lib.mk
12@@ -130,8 +130,8 @@ LIBENTRY_OBJS = \
13 exit.o
14
15 LIBGCC_OBJS = \
16- $(patsubst $(com32)/lib/%.c,%.o,$(wildcard $(com32)/lib/$(ARCH)/libgcc/*.c)) \
17- $(patsubst $(com32)/lib/%.S,%.o,$(wildcard $(com32)/lib/$(ARCH)/libgcc/*.S))
18+ $(sort $(patsubst $(com32)/lib/%.c,%.o,$(wildcard $(com32)/lib/$(ARCH)/libgcc/*.c))) \
19+ $(sort $(patsubst $(com32)/lib/%.S,%.o,$(wildcard $(com32)/lib/$(ARCH)/libgcc/*.S)))
20
21 LIBCONSOLE_OBJS = \
22 \