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.
This commit is contained in:
Bernhard M. Wiedemann 2023-06-08 15:07:48 +02:00
parent 8642d4ae10
commit f43c9702e0

View File

@ -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)