From f43c9702e002db5466916a7c9b619f7ec150da7c Mon Sep 17 00:00:00 2001 From: "Bernhard M. Wiedemann" Date: Thu, 8 Jun 2023 15:07:48 +0200 Subject: [PATCH] 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. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.5