[PATCH skalibs] Make build reproducible

From: Shengjing Zhu <zhsj_at_debian.org>
Date: Tue, 20 Aug 2019 00:21:25 +0800

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

Signed-off-by: Shengjing Zhu <zhsj_at_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
_at_@ -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



Received on Mon Aug 19 2019 - 16:21:25 UTC

This archive was generated by hypermail 2.3.0 : Sun May 09 2021 - 19:38:49 UTC