estrip: Run RANLIB after stripping static archives to fix LTO

Run RANLIB after stripping static archives in order to fix potentially
mangled LTO symbol indexes.  According to the user's report, strip lacks
support for LTO symbols (and for binutils plugins that could add
the missing support) and breaks them.  Upstream suggests fixing
the archive by running ranlib -- and since there should be no harm
in doing that, we can do that unconditionally.

Suggested-by: Shane Peelar
Bug: https://github.com/mgorny/portage-mgorny/issues/21
Bug: https://bugs.gentoo.org/603594
Reviewed-by: Zac Medico <zmedico@gentoo.org>
Signed-off-by: Michał Górny <mgorny@gentoo.org>
1 file changed