mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-libs/snowball-stemmer: use dot-a.eclass
... to avoid installing broken static libraries w/ LTO. Signed-off-by: Nicolas PARLANT <nicolas.parlant@parhuet.fr> Part-of: https://codeberg.org/gentoo/gentoo/pulls/229 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
committed by
Sam James
parent
f1b6b0e3f0
commit
7052e53c8b
@@ -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 toolchain-funcs
|
||||
inherit dot-a toolchain-funcs
|
||||
|
||||
MY_TESTDATA_COMMIT="381b447563f9bef87b218ebbedde3159afdc3032"
|
||||
|
||||
@@ -27,6 +27,11 @@ PATCHES=(
|
||||
"${FILESDIR}/${P}-shared-library.patch"
|
||||
)
|
||||
|
||||
src_configure() {
|
||||
use static-libs && lto-guarantee-fat
|
||||
default
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
tc-export CC AR
|
||||
default
|
||||
@@ -47,5 +52,8 @@ src_install() {
|
||||
dolib.so libstemmer.so.$(ver_cut 1)
|
||||
dolib.so libstemmer.so
|
||||
|
||||
use static-libs && dolib.a libstemmer.a
|
||||
if use static-libs; then
|
||||
dolib.a libstemmer.a
|
||||
strip-lto-bytecode
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user