From: Bernhard M. Wiedemann Date: Thu, 8 Jun 2023 13:07:48 +0000 (+0200) Subject: Sort input file list X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=f43c9702e002db5466916a7c9b619f7ec150da7c;p=bcachefs-tools-debian Sort input file list so that libbcachefs.so builds in a reproducible way in spite of non-deterministic filesystem readdir order. See https://reproducible-builds.org/ for why this is good. --- diff --git a/Makefile b/Makefile index 033cdfb..c77c0c5 100644 --- a/Makefile +++ b/Makefile @@ -98,7 +98,7 @@ TAGS: tags: ctags -R . -SRCS=$(shell find . -type f ! -path '*/.*/*' -iname '*.c') +SRCS=$(sort $(shell find . -type f ! -path '*/.*/*' -iname '*.c')) DEPS=$(SRCS:.c=.d) -include $(DEPS)