commit: 4382f5eed81e01b687c4398815b585c212795791 Author: Eli Schwartz <eschwartz <AT> gentoo <DOT> org> AuthorDate: Tue Aug 5 19:32:37 2025 +0000 Commit: Eli Schwartz <eschwartz <AT> gentoo <DOT> org> CommitDate: Tue Aug 5 19:53:34 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4382f5ee
dev-libs/vc: use dot-a.eclass ... to avoid installing broken static libraries w/ LTO. Closes: https://bugs.gentoo.org/958415 Signed-off-by: Eli Schwartz <eschwartz <AT> gentoo.org> dev-libs/vc/vc-1.4.4.ebuild | 14 ++++++++++++-- dev-libs/vc/vc-1.4.5.ebuild | 14 ++++++++++++-- 2 files changed, 24 insertions(+), 4 deletions(-) diff --git a/dev-libs/vc/vc-1.4.4.ebuild b/dev-libs/vc/vc-1.4.4.ebuild index 7390bfa10fcc..e2d1f536a934 100644 --- a/dev-libs/vc/vc-1.4.4.ebuild +++ b/dev-libs/vc/vc-1.4.4.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -inherit cmake +inherit cmake dot-a DESCRIPTION="SIMD Vector Class Library for C++" HOMEPAGE="https://github.com/VcDevel/Vc" @@ -13,3 +13,13 @@ S="${WORKDIR}"/Vc-${PV} LICENSE="BSD" SLOT="0" KEYWORDS="amd64 arm arm64 x86 ~amd64-linux ~x86-linux ~x64-macos" + +src_configure() { + lto-guarantee-fat + cmake_src_configure +} + +src_install() { + cmake_src_install + strip-lto-bytecode +} diff --git a/dev-libs/vc/vc-1.4.5.ebuild b/dev-libs/vc/vc-1.4.5.ebuild index 1cc7ae581263..bea451a8d5fc 100644 --- a/dev-libs/vc/vc-1.4.5.ebuild +++ b/dev-libs/vc/vc-1.4.5.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -inherit cmake +inherit cmake dot-a DESCRIPTION="SIMD Vector Class Library for C++" HOMEPAGE="https://github.com/VcDevel/Vc" @@ -13,3 +13,13 @@ S="${WORKDIR}"/Vc-${PV} LICENSE="BSD" SLOT="0" KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux ~x64-macos" + +src_configure() { + lto-guarantee-fat + cmake_src_configure +} + +src_install() { + cmake_src_install + strip-lto-bytecode +}
