aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernhard M. Wiedemann <bwiedemann@suse.de>2023-06-08 15:07:48 +0200
committerBernhard M. Wiedemann <bwiedemann@suse.de>2023-06-08 15:07:48 +0200
commitf43c9702e002db5466916a7c9b619f7ec150da7c (patch)
treec6db57efafb3a8399de092fb660e0705adbdc4fd
parent8642d4ae10f167a2eb850403f6d2b60757242b31 (diff)
downloadbcachefs-tools-f43c9702e002db5466916a7c9b619f7ec150da7c.tar.gz
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.
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 033cdfba..c77c0c51 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)