commit: a05e685a5dbe47c3c2f82078b89015ad90cb29b3 Author: Matoro Mahri <matoro_gentoo <AT> matoro <DOT> tk> AuthorDate: Fri Aug 1 01:57:36 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Fri Aug 1 04:25:31 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a05e685a
app-emulation/hercules-sdl-crypto: fix LTO on static lib Closes: https://bugs.gentoo.org/958411 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-crypto/hercules-sdl-crypto-4.8.0.ebuild | 12 +++++++++++- .../hercules-sdl-crypto/hercules-sdl-crypto-9999.ebuild | 14 ++++++++++++-- 2 files changed, 23 insertions(+), 3 deletions(-) diff --git a/app-emulation/hercules-sdl-crypto/hercules-sdl-crypto-4.8.0.ebuild b/app-emulation/hercules-sdl-crypto/hercules-sdl-crypto-4.8.0.ebuild index 9c2e0a51a838..f9099c407459 100644 --- a/app-emulation/hercules-sdl-crypto/hercules-sdl-crypto-4.8.0.ebuild +++ b/app-emulation/hercules-sdl-crypto/hercules-sdl-crypto-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="public-domain MIT 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-crypto/hercules-sdl-crypto-9999.ebuild b/app-emulation/hercules-sdl-crypto/hercules-sdl-crypto-9999.ebuild index 0bfa5e44ea13..d49827b8e856 100644 --- a/app-emulation/hercules-sdl-crypto/hercules-sdl-crypto-9999.ebuild +++ b/app-emulation/hercules-sdl-crypto/hercules-sdl-crypto-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="Simple AES/DES encryption and SHA1/SHA2 hashing library" HOMEPAGE="https://github.com/SDL-Hercules-390/crypto" @@ -12,3 +12,13 @@ EGIT_REPO_URI="https://github.com/SDL-Hercules-390/crypto" LICENSE="public-domain MIT BSD" SLOT="0" PATCHES=( "${FILESDIR}/cmakefix.patch" ) + +src_configure() { + lto-guarantee-fat + cmake_src_configure +} + +src_install() { + cmake_src_install + strip-lto-bytecode +}
