mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-17 14:49:30 -07:00
app-arch/lz4: use dot-a eclass
... to avoid installing broken static libraries w/ LTO. Closes: https://bugs.gentoo.org/968594 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit meson-multilib
|
||||
inherit dot-a meson-multilib
|
||||
|
||||
DESCRIPTION="Extremely Fast Compression algorithm"
|
||||
HOMEPAGE="https://github.com/lz4/lz4"
|
||||
@@ -23,6 +23,11 @@ PATCHES=(
|
||||
"${FILESDIR}/${PV}-meson-do-not-force-c99-mode.patch"
|
||||
)
|
||||
|
||||
src_configure() {
|
||||
use static-libs && lto-guarantee-fat
|
||||
multilib-minimal_src_configure
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
local emesonargs=(
|
||||
-Dtests=$(usex test true false)
|
||||
@@ -40,3 +45,8 @@ multilib_src_configure() {
|
||||
|
||||
meson_src_configure
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
einstalldocs
|
||||
strip-lto-bytecode
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user