From fbf7251d5cfad5f7e644f5688d6462a639d7419c Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Mon, 21 Sep 2026 06:25:23 -1000 Subject: Link builds reproducibly --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 42b2d63..71f60fd 100644 --- a/Makefile +++ b/Makefile @@ -68,6 +68,10 @@ all: cgit # mandatory. GIT_BUILD_FLAGS = NO_CURL=1 NO_OPENSSL=1 NO_RUST=1 +# Apple's linker otherwise stamps each object's mtime into the debug map, so +# two builds of the same sources would differ. +export ZERO_AR_DATE = 1 + cgit: +@$(MAKE) -C $(GITDIR) -f $(CGIT_ROOT)/$(SRCDIR)/cgit.mk \ $(CGIT_ROOT)/$(BUILDDIR)/cgit $(EXTRA_GIT_TARGETS) $(GIT_BUILD_FLAGS) -- cgit v2.8.0