Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Apr 2014 09:51:00 +0200
From:      Erik Cederstrand <erik@cederstrand.dk>
To:        =?iso-8859-1?Q?Dag-Erling_Sm=F8rgrav?= <des@des.no>
Cc:        arch@freebsd.org
Subject:   Re: ar and ranlib -D
Message-ID:  <8F5B6CDC-3680-4F3A-887B-B01F0E9C3E5D@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=F8rgrav <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?8F5B6CDC-3680-4F3A-887B-B01F0E9C3E5D>