Sort linker input file list

so that dunst binaries build in a reproducible way
in spite of indeterministic filesystem readdir order

See https://reproducible-builds.org/ for why this is good.
This commit is contained in:
Bernhard M. Wiedemann 2017-09-12 21:26:30 +02:00
parent 29aa4c7ec8
commit 5df95513ec

View File

@ -6,7 +6,7 @@ include config.mk
CFLAGS += -I. CFLAGS += -I.
LDFLAGS += -L. LDFLAGS += -L.
SRC := $(shell find src/ -name '*.c') SRC := $(sort $(shell find src/ -name '*.c'))
OBJ := ${SRC:.c=.o} OBJ := ${SRC:.c=.o}
all: doc dunst service all: doc dunst service