Hi,
ar and ranlib add timestamp and uid/gid for the object files in static
libraries.
If used in deterministic mode, these are set to zero, making the
binaries reproducible.
Attached patch achieves that.
Best regards,
Andreas
>From 1dfc47cb27ae6f3d88b8b7ca690b980842003ee7 Mon Sep 17 00:00:00 2001
From: Andreas Cadhalpun <andreas.cadhal...@googlemail.com>
Date: Wed, 21 Jan 2015 22:32:58 +0100
Subject: [PATCH] configure: use ar and ranlib in deterministic mode
this makes the static libraries binary reproducible
Signed-off-by: Andreas Cadhalpun <andreas.cadhal...@googlemail.com>
---
configure | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/configure b/configure
index 4f44cea..f60ca88 100755
--- a/configure
+++ b/configure
@@ -2705,7 +2705,7 @@ ln_s="ln -s -f"
nm_default="nm -g"
objformat="elf"
pkg_config_default=pkg-config
-ranlib_default="ranlib"
+ranlib_default="ranlib -D"
strip_default="strip"
yasmexe_default="yasm"
windres_default="windres"
@@ -3604,7 +3604,7 @@ elif $ar 2>&1 | grep -q 'Usage: ar.*-X.*any'; then
arflags='-Xany -r -c'
ar_o='$@'
else
- arflags="rc"
+ arflags="Drc"
ar_o='$@'
fi
--
2.1.4
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel