Fix the undetermined object order when linking.
See more https://reproducible-builds.org/docs/stable-inputs/

Signed-off-by: Shengjing Zhu <z...@debian.org>
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 0724394..80c158b 100644
--- a/Makefile
+++ b/Makefile
@@ -31,7 +31,7 @@ INSTALL := ./tools/install.sh
 
 TYPES := size uid gid pid time dev ino
 
-ALL_SRCS := $(wildcard src/lib*/*.c)
+ALL_SRCS := $(sort $(wildcard src/lib*/*.c))
 ALL_DOBJS := $(ALL_SRCS:%.c=%.lo)
 ifeq ($(strip $(STATIC_LIBS_ARE_PIC)),)
 ALL_SOBJS := $(ALL_SRCS:%.c=%.o)
-- 
2.23.0.rc1

Attachment: signature.asc
Description: PGP signature

Reply via email to