commit: 7d27eec63e755a0cbdb76a489ca5c0f0438ee6f0 Author: Matoro Mahri <matoro_gentoo <AT> matoro <DOT> tk> AuthorDate: Fri Aug 1 02:00:53 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Fri Aug 1 04:25:32 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7d27eec6
app-emulation/hercules-sdl-softfloat: fix LTO on static lib Closes: https://bugs.gentoo.org/958347 Signed-off-by: Matoro Mahri <matoro_gentoo <AT> matoro.tk> Part-of: https://github.com/gentoo/gentoo/pull/43275 Signed-off-by: Sam James <sam <AT> gentoo.org> .../hercules-sdl-softfloat-4.8.0.ebuild | 12 +++++++++++- .../hercules-sdl-softfloat-9999.ebuild | 14 ++++++++++++-- 2 files changed, 23 insertions(+), 3 deletions(-) diff --git a/app-emulation/hercules-sdl-softfloat/hercules-sdl-softfloat-4.8.0.ebuild b/app-emulation/hercules-sdl-softfloat/hercules-sdl-softfloat-4.8.0.ebuild index 8274253c5bed..574f8d373010 100644 --- a/app-emulation/hercules-sdl-softfloat/hercules-sdl-softfloat-4.8.0.ebuild +++ b/app-emulation/hercules-sdl-softfloat/hercules-sdl-softfloat-4.8.0.ebuild @@ -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 +} diff --git a/app-emulation/hercules-sdl-softfloat/hercules-sdl-softfloat-9999.ebuild b/app-emulation/hercules-sdl-softfloat/hercules-sdl-softfloat-9999.ebuild index aa8e20b71b90..b628ba75efc8 100644 --- a/app-emulation/hercules-sdl-softfloat/hercules-sdl-softfloat-9999.ebuild +++ b/app-emulation/hercules-sdl-softfloat/hercules-sdl-softfloat-9999.ebuild @@ -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 +}
