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 8274253c5bed2..574f8d3730104 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 aa8e20b71b90a..b628ba75efc89 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 +}