binutils: enable determinstic archives by default in GNU ar
Timestamps and user ids are not really needed in ar archives, and get in the way of reproducible builds, so let's make -D the default. freebsd did it a year ago: https://svnweb.freebsd.org/ports?view=revision&revision=416639 debian did it way back in 2.25-6: https://wiki.debian.org/ReproducibleBuilds/TimestampsInStaticLibraries Fixes https://github.com/Homebrew/homebrew-core/issues/14859 See also https://reproducible-builds.org/ Closes #14860. Signed-off-by: Alex Dunn <dunn.alex@gmail.com>
This commit is contained in:
parent
1b1c980647
commit
a05f19abd2
1 changed files with 2 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
class Binutils < Formula
|
||||
desc "FSF Binutils for native development"
|
||||
desc "FSF/GNU ld, ar, readelf, etc. for native development"
|
||||
homepage "https://www.gnu.org/software/binutils/binutils.html"
|
||||
url "https://ftp.gnu.org/gnu/binutils/binutils-2.28.tar.gz"
|
||||
mirror "https://ftpmirror.gnu.org/binutils/binutils-2.28.tar.gz"
|
||||
|
@ -16,6 +16,7 @@ class Binutils < Formula
|
|||
def install
|
||||
system "./configure", "--disable-debug",
|
||||
"--disable-dependency-tracking",
|
||||
"--enable-deterministic-archives",
|
||||
"--program-prefix=g",
|
||||
"--prefix=#{prefix}",
|
||||
"--infodir=#{info}",
|
||||
|
|
Loading…
Reference in a new issue