Skip to content
Snippets Groups Projects
Commit f8716d1e authored by Andreas Cadhalpun's avatar Andreas Cadhalpun Committed by Michael Niedermayer
Browse files

configure: use ar and ranlib in deterministic mode if available


this makes the static libraries binary reproducible

Signed-off-by: default avatarAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Signed-off-by: default avatarMichael Niedermayer <michaelni@gmx.at>
parent 530bf8ec
No related branches found
No related tags found
No related merge requests found
......@@ -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='$@'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment