1 diff --git a/core/Makefile b/core/Makefile
2 index 50ff35af..f1af71b7 100644
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.
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
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
18 @@ -58,8 +58,8 @@ CFLAGS += -mregparm=3 -DREGPARM=3
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)))
29 @@ -130,8 +130,8 @@ LIBENTRY_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)))