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>
This commit is contained in:
parent
530bf8ece6
commit
f8716d1e56
9
configure
vendored
9
configure
vendored
@ -2702,7 +2702,11 @@ ln_s="ln -s -f"
|
|||||||
nm_default="nm -g"
|
nm_default="nm -g"
|
||||||
objformat="elf"
|
objformat="elf"
|
||||||
pkg_config_default=pkg-config
|
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"
|
strip_default="strip"
|
||||||
yasmexe_default="yasm"
|
yasmexe_default="yasm"
|
||||||
windres_default="windres"
|
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
|
elif $ar 2>&1 | grep -q 'Usage: ar.*-X.*any'; then
|
||||||
arflags='-Xany -r -c'
|
arflags='-Xany -r -c'
|
||||||
ar_o='$@'
|
ar_o='$@'
|
||||||
|
elif $ar 2>&1 | grep -q "\[D\] "; then
|
||||||
|
arflags="rcD"
|
||||||
|
ar_o='$@'
|
||||||
else
|
else
|
||||||
arflags="rc"
|
arflags="rc"
|
||||||
ar_o='$@'
|
ar_o='$@'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user