app-emulation/hercules-sdl-softfloat: fix LTO on static lib

Closes: https://bugs.gentoo.org/958347
Signed-off-by: Matoro Mahri <matoro_gentoo@matoro.tk>
Part-of: https://github.com/gentoo/gentoo/pull/43275
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Matoro Mahri 2025-07-31 22:00:53 -04:00 committed by Sam James
parent 4371d4dd7c
commit 7d27eec63e
No known key found for this signature in database
GPG Key ID: 738409F520DF9190
2 changed files with 23 additions and 3 deletions

View File

@ -3,7 +3,7 @@
EAPI=8
inherit cmake
inherit cmake dot-a
# Use ../hercules-sdl/files/gen_hashes.sh to identify the relevant
# commit when tagging new versions.
@ -18,3 +18,13 @@ LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 ppc64"
PATCHES=( "${FILESDIR}/cmakefix.patch" )
src_configure() {
lto-guarantee-fat
cmake_src_configure
}
src_install() {
cmake_src_install
strip-lto-bytecode
}

View File

@ -1,9 +1,9 @@
# Copyright 2022-2023 Gentoo Authors
# Copyright 2022-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit git-r3 cmake
inherit git-r3 cmake dot-a
DESCRIPTION="Berkeley IEEE Binary Floating-Point Library"
HOMEPAGE="https://github.com/SDL-Hercules-390/SoftFloat"
@ -12,3 +12,13 @@ EGIT_REPO_URI="https://github.com/SDL-Hercules-390/SoftFloat"
LICENSE="BSD"
SLOT="0"
PATCHES=( "${FILESDIR}/cmakefix.patch" )
src_configure() {
lto-guarantee-fat
cmake_src_configure
}
src_install() {
cmake_src_install
strip-lto-bytecode
}