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
@@ -41,7 +41,7 @@ ZSTDLIB_LOCAL_SRC = $(notdir $(ZSTDLIB_FULL_SRC))
ZSTDLIB_LOCAL_OBJ0 := $(ZSTDLIB_LOCAL_SRC:.c=.o)
ZSTDLIB_LOCAL_OBJ := $(ZSTDLIB_LOCAL_OBJ0:.S=.o)
ZSTD_CLI_SRC := $(wildcard *.c)
ZSTD_CLI_SRC := $(sort $(wildcard *.c))
ZSTD_CLI_OBJ := $(ZSTD_CLI_SRC:.c=.o)
ZSTD_ALL_SRC = $(ZSTDLIB_LOCAL_SRC) $(ZSTD_CLI_SRC)