From b673c50e011ccbc96146ed5533da9c508fcc8533 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Wed, 28 Sep 2022 17:40:44 +0200 Subject: [PATCH] added rule to Makefile to ensure reproducible builds Declare build dependency to ensure consistent make execution order. See https://reproducible-builds.org/ for why this is good. Without this patch, parallelism would make a difference in the produced config.o This patch was done while working on reproducible builds for openSUSE. Thanks to Bernhard M. Wiedemann for this patch! --- src/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Makefile b/src/Makefile index b9a75a6b..f634296e 100644 --- a/src/Makefile +++ b/src/Makefile @@ -316,6 +316,8 @@ conf-hash: @echo '#define SOURCE_HASH_STRING "$(SOURCE_HASH_STRING)"' \ > $(COMMIT_HASH_FILE) +config.o: config.c $(TIMESTAMP_FILE) + $(TIMESTAMP_FILE): $(SRCS) $(RNDLIBS) @$(MAKE) conf-time -- 2.34.1