diff options
author | Philippe Coval <philippe.coval@open.eurogiciel.org> | 2014-12-17 16:46:29 -0500 |
---|---|---|
committer | Gene Cumm <gene.cumm@gmail.com> | 2015-01-05 20:43:13 -0500 |
commit | be645d7a9848847388a662f6c0f7571d52ed7a05 (patch) | |
tree | 8074428b499d413984e372b8d2a0841a4662b4cf /core | |
parent | 5932f124bce94b662b0b7dc9b79cdc4802d4731c (diff) | |
download | syslinux-be645d7a9848847388a662f6c0f7571d52ed7a05.tar.gz syslinux-be645d7a9848847388a662f6c0f7571d52ed7a05.tar.xz syslinux-be645d7a9848847388a662f6c0f7571d52ed7a05.zip |
build: sort sources to build in a more deterministic way
It has been observed that binaries contents
are depending on the order of linked objects.
This order is caused by GNU make's wildcard function
and the position of sources on filesystem.
This change tries to prevent this kind of randomness.
Also consider building using -j1 flag
to make it even more reproductible.
Change-Id: Ie8eee7f336e6f1fa2863c4150d967afd15519f1d
Bug: http://bugzilla.syslinux.org/show_bug.cgi?id=57#related
Signed-off-by: Philippe Coval <philippe.coval at open.eurogiciel.org>
Diffstat (limited to 'core')
-rw-r--r-- | core/Makefile | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/core/Makefile b/core/Makefile index ad0acb5a..26302fd6 100644 --- a/core/Makefile +++ b/core/Makefile @@ -39,8 +39,8 @@ BTARGET = kwdhash.gen \ isolinux.bin isolinux-debug.bin pxelinux.0 lpxelinux.0 # All primary source files for the main syslinux files -NASMSRC := $(wildcard $(SRC)/*.asm) -NASMHDR := $(wildcard $(SRC)/*.inc) +NASMSRC := $(sort $(wildcard $(SRC)/*.asm)) +NASMHDR := $(sort $(wildcard $(SRC)/*.inc)) CSRC := $(shell find $(SRC) -name '*.c' -print) SSRC := $(shell find $(SRC) -name '*.S' -print) CHDR := $(shell find $(SRC) -name '*.h' -print) @@ -80,9 +80,9 @@ FILTER_OBJS = %rawcon.o %plaincon.o %pxelinux-c.o %ldlinux-c.o \ ifdef EFI_BUILD # EFI is single-threaded, and doesn't use the LZO assembly decoder FILTER_OBJS += $(subst $(SRC)/,, \ - $(patsubst %.S,%.o, $(wildcard $(SRC)/lzo/*.S)) \ - $(patsubst %.c,%.o, $(wildcard $(SRC)/thread/*.c)) \ - $(patsubst %.S,%.o, $(wildcard $(SRC)/thread/*.S))) + $(patsubst %.S,%.o, $(sort $(wildcard $(SRC)/lzo/*.S))) \ + $(patsubst %.c,%.o, $(sort $(wildcard $(SRC)/thread/*.c))) \ + $(patsubst %.S,%.o, $(sort $(wildcard $(SRC)/thread/*.S)))) endif COBJS = $(filter-out $(FILTER_OBJS),$(COBJ)) |