From: Holger Schemel Date: Wed, 28 Sep 2022 15:40:44 +0000 (+0200) Subject: added rule to Makefile to ensure reproducible builds X-Git-Tag: 4.3.3.0~59 X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=commitdiff_plain;h=b673c50e011ccbc96146ed5533da9c508fcc8533 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! --- 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