Makefile: sort all wildcard file list expansions

Otherwise the order is non-deterministic and breaks
reproducible builds.
This commit is contained in:
Alexander Kanavin
2021-12-02 12:04:11 +01:00
committed by Alexander Kanavin
parent 9b97fdf74f
commit 1e514feec6
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -68,7 +68,7 @@ FUZZ_SRC := \
$(ZSTDCOMP_SRC) \
$(ZSTDDICT_SRC) \
$(ZSTDLEGACY_SRC)
FUZZ_SRC := $(wildcard $(FUZZ_SRC))
FUZZ_SRC := $(sort $(wildcard $(FUZZ_SRC)))
FUZZ_D_OBJ1 := $(subst $(ZSTDDIR)/common/,d_lib_common_,$(FUZZ_SRC))
FUZZ_D_OBJ2 := $(subst $(ZSTDDIR)/compress/,d_lib_compress_,$(FUZZ_D_OBJ1))