Commit a7c73ace authored by Reiner Herrmann's avatar Reiner Herrmann
Browse files

Sort list of source files for deterministic linking order

The order of object files is derived from the list of source files,
which has no deterministic order.
Sort the list to enable reproducible building.

Signed-off-by: default avatarReiner Herrmann <reiner@reiner-h.de>
parent f04707a8
Loading
Loading
Loading
Loading
+1 −1
Changes for Makefile: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -87,7 +87,7 @@ tmp/%.o: src/%.c src/*.h
	$(CC) $(CFLAGS) -c $< -o $@


SRC = $(wildcard src/*.c)
SRC = $(sort $(wildcard src/*.c))
OBJ = $(addprefix tmp/, $(notdir $(addsuffix .o, $(basename $(SRC)))))