From ec2d50191ca7ecfa06fa7bf26ea4794e0be7e571 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Mon, 14 Sep 2026 20:40:31 -1000 Subject: Link builds reproducibly --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Makefile') 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 2.12.1