ar and ranlib -D
Erik Cederstrand
erik+lists at cederstrand.dk
Fri Apr 11 07:59:00 UTC 2014
Den 10/04/2014 kl. 17.06 skrev Dag-Erling Smørgrav <des at 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
More information about the freebsd-arch
mailing list