commit: d6456aedc66774116a094711c1bd7689e397faa0 Author: Eli Schwartz <eschwartz <AT> gentoo <DOT> org> AuthorDate: Thu Jul 24 00:19:25 2025 +0000 Commit: Eli Schwartz <eschwartz <AT> gentoo <DOT> org> CommitDate: Thu Jul 24 04:50:13 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d6456aed
dev-util/directx-headers: use dot-a.eclass ... to avoid installing broken static libraries w/ LTO. Closes: https://bugs.gentoo.org/958348 Signed-off-by: Eli Schwartz <eschwartz <AT> gentoo.org> dev-util/directx-headers/directx-headers-1.616.0.ebuild | 10 +++++++++- dev-util/directx-headers/directx-headers-9999.ebuild | 12 ++++++++++-- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/dev-util/directx-headers/directx-headers-1.616.0.ebuild b/dev-util/directx-headers/directx-headers-1.616.0.ebuild index 6eb9e68a7536..a6a696ef86b1 100644 --- a/dev-util/directx-headers/directx-headers-1.616.0.ebuild +++ b/dev-util/directx-headers/directx-headers-1.616.0.ebuild @@ -4,7 +4,7 @@ EAPI=8 MY_PN=DirectX-Headers -inherit meson-multilib +inherit dot-a meson-multilib if [[ ${PV} == *9999* ]]; then EGIT_REPO_URI="https://github.com/microsoft/${MY_PN}.git" @@ -22,9 +22,17 @@ LICENSE="MIT" SLOT="0" multilib_src_configure() { + lto-guarantee-fat + local emesonargs=( -Dbuild-test=false ) meson_src_configure } + +multilib_src_install_all() { + strip-lto-bytecode + einstalldocs + +} diff --git a/dev-util/directx-headers/directx-headers-9999.ebuild b/dev-util/directx-headers/directx-headers-9999.ebuild index e59d2038d4d6..0574e2aa83da 100644 --- a/dev-util/directx-headers/directx-headers-9999.ebuild +++ b/dev-util/directx-headers/directx-headers-9999.ebuild @@ -1,10 +1,10 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 MY_PN=DirectX-Headers -inherit meson-multilib +inherit dot-a meson-multilib if [[ ${PV} == *9999* ]]; then EGIT_REPO_URI="https://github.com/microsoft/${MY_PN}.git" @@ -22,9 +22,17 @@ LICENSE="MIT" SLOT="0" multilib_src_configure() { + lto-guarantee-fat + local emesonargs=( -Dbuild-test=false ) meson_src_configure } + +multilib_src_install_all() { + strip-lto-bytecode + einstalldocs + +}
