Date: Fri, 11 Apr 2014 09:51:42 +0200 From: Erik Cederstrand <erik+lists@cederstrand.dk> Cc: arch@freebsd.org Subject: Re: ar and ranlib -D Message-ID: <C346E9E4-CC4C-49A3-809A-D3EAB6742D24@cederstrand.dk> In-Reply-To: <86eh15usv2.fsf@nine.des.no> References: <86eh15usv2.fsf@nine.des.no>
next in thread | previous in thread | raw e-mail | index | archive | help
Den 10/04/2014 kl. 17.06 skrev Dag-Erling Smørgrav <des@des.no>:
> The attached patch adds -D to ARFLAGS and introduces RANLIBFLAGS which
> defaults to -D. This ensures that all timestamps inside static
> libraries in the base system are hardcoded to 0 (aka the epoch), which
> is a huge step towards fully reproducible builds. Any objections?
I've used a similar patch for some time without problems. You should grep the tree to check that ar and ranlib are always called with ${ARFLAGS} and ${RANLIBFLAGS}. I seem to remember that some makefiles just hardcode the flags.
Erik
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?C346E9E4-CC4C-49A3-809A-D3EAB6742D24>
