sys-libs/binutils-libs: properly strip LTO bytecode from static libs

The fix in b2d68e3a4b still wasn't
right but I didn't notice because of the filter-lto.

Bug: https://bugs.gentoo.org/924360
Fixes: b2d68e3a4b
Fixes: a00c963757
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2025-05-18 13:05:11 +01:00
parent 4588cfca10
commit 4b1e2a5cf4
2 changed files with 4 additions and 2 deletions
@@ -227,5 +227,6 @@ multilib_src_install() {
multilib_src_install_all() {
use static-libs || find "${ED}"/usr -name '*.la' -delete
strip-lto-bytecode
# Explicit "${ED}" as we need it to do things even w/ USE=-static-libs
strip-lto-bytecode "${ED}"
}
@@ -227,5 +227,6 @@ multilib_src_install() {
multilib_src_install_all() {
use static-libs || find "${ED}"/usr -name '*.la' -delete
strip-lto-bytecode
# Explicit "${ED}" as we need it to do things even w/ USE=-static-libs
strip-lto-bytecode "${ED}"
}