OCaml 4.14.0 rebuild
[arch-packages.git] / syslinux / trunk / 0025-reproducible-build.patch
blob965a9d946ab1beaaa4466770075871e7006dbb59
1 diff --git a/core/Makefile b/core/Makefile
2 index 50ff35af..f1af71b7 100644
3 --- a/core/Makefile
4 +++ b/core/Makefile
5 @@ -112,7 +112,7 @@ CFLAGS += -D__SYSLINUX_CORE__ -D__FIRMWARE_$(FIRMWARE)__ \
6 # official release. Otherwise, substitute a hex string that is pretty much
7 # guaranteed to be unique to be unique from build to build.
8 ifndef HEXDATE
9 -HEXDATE := $(shell $(PERL) $(SRC)/../now.pl $(SRCS))
10 +HEXDATE := $(shell printf '0x%x\n' $(git log -1 --format=%ct)) # make the build more predictable
11 endif
12 ifndef DATE
13 DATE := $(shell sh $(SRC)/../gen-id.sh $(VERSION) $(HEXDATE))
14 diff --git a/mk/lib.mk b/mk/lib.mk
15 index f3fb07c7..bece24a0 100644
16 --- a/mk/lib.mk
17 +++ b/mk/lib.mk
18 @@ -58,8 +58,8 @@ CFLAGS += -mregparm=3 -DREGPARM=3
19 endif
21 ARCH_MATH_OBJS = \
22 - $(patsubst $(com32)/lib/%.c,%.o,$(wildcard $(com32)/lib/$(ARCH)/math/*.c)) \
23 - $(patsubst $(com32)/lib/%.S,%.o,$(wildcard $(com32)/lib/$(ARCH)/math/*.S))
24 + $(patsubst $(com32)/lib/%.c,%.o,$(sort $(wildcard $(com32)/lib/$(ARCH)/math/*.c))) \
25 + $(patsubst $(com32)/lib/%.S,%.o,$(sort $(wildcard $(com32)/lib/$(ARCH)/math/*.S)))
27 VPATH = $(SRC)
28 LIBOTHER_OBJS = \
29 @@ -130,8 +130,8 @@ LIBENTRY_OBJS = \
30 exit.o
32 LIBGCC_OBJS = \
33 - $(patsubst $(com32)/lib/%.c,%.o,$(wildcard $(com32)/lib/$(ARCH)/libgcc/*.c)) \
34 - $(patsubst $(com32)/lib/%.S,%.o,$(wildcard $(com32)/lib/$(ARCH)/libgcc/*.S))
35 + $(patsubst $(com32)/lib/%.c,%.o,$(sort $(wildcard $(com32)/lib/$(ARCH)/libgcc/*.c))) \
36 + $(patsubst $(com32)/lib/%.S,%.o,$(sort $(wildcard $(com32)/lib/$(ARCH)/libgcc/*.S)))
38 LIBCONSOLE_OBJS = \