media-libs/libsdl2: use dot-a.eclass

... to avoid installing broken static libraries w/ LTO.

Especially important because of libSDL2_test.a.

Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James 2025-05-06 13:10:24 +01:00
parent 066db17f06
commit af83cdda13
No known key found for this signature in database
GPG Key ID: 738409F520DF9190

View File

@ -3,7 +3,7 @@
EAPI=8
inherit cmake-multilib flag-o-matic
inherit cmake-multilib dot-a flag-o-matic
MY_P="SDL2-${PV}"
DESCRIPTION="Simple Direct Media Layer"
@ -121,6 +121,7 @@ src_prepare() {
src_configure() {
use custom-cflags || strip-flags
lto-guarantee-fat
local mycmakeargs=(
-DSDL_STATIC=$(usex static-libs)
@ -211,4 +212,5 @@ multilib_src_install_all() {
rm -r "${ED}"/usr/share/licenses/ || die
dodoc {BUGS,CREDITS,README-SDL,TODO,WhatsNew}.txt README.md docs/README*.md
use doc && dodoc -r docs/output/html/
strip-lto-bytecode
}