aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>2015-01-26 23:50:29 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-01-27 01:15:09 +0100
commitf8716d1e56d5019d070b30692d144c30a18fcf23 (patch)
tree399dfc5ed317b6f2c0130a4e9329b76efb9a4191 /configure
parent530bf8ece6f828262b211edab1b97b873569b255 (diff)
downloadffmpeg-f8716d1e56d5019d070b30692d144c30a18fcf23.tar.gz
configure: use ar and ranlib in deterministic mode if available
this makes the static libraries binary reproducible Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure9
1 files changed, 8 insertions, 1 deletions
diff --git a/configure b/configure
index 9fcdaee2c8..c684d2326f 100755
--- a/configure
+++ b/configure
@@ -2702,7 +2702,11 @@ ln_s="ln -s -f"
nm_default="nm -g"
objformat="elf"
pkg_config_default=pkg-config
-ranlib_default="ranlib"
+if ranlib 2>&1 | grep -q "\-D "; then
+ ranlib_default="ranlib -D"
+else
+ ranlib_default="ranlib"
+fi
strip_default="strip"
yasmexe_default="yasm"
windres_default="windres"
@@ -3600,6 +3604,9 @@ elif $ar 2>&1 | grep -q 'Texas Instruments'; then
elif $ar 2>&1 | grep -q 'Usage: ar.*-X.*any'; then
arflags='-Xany -r -c'
ar_o='$@'
+elif $ar 2>&1 | grep -q "\[D\] "; then
+ arflags="rcD"
+ ar_o='$@'
else
arflags="rc"
ar_o='$@'