mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-06 02:17:34 -08:00
sys-libs/libsepol: use dot-a.eclass
... to avoid installing broken static libraries w/ LTO. Closes: https://bugs.gentoo.org/957978 Signed-off-by: Nicolas PARLANT <nicolas.parlant@parhuet.fr> Part-of: https://github.com/gentoo/gentoo/pull/45044 Closes: https://github.com/gentoo/gentoo/pull/45044 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
parent
1345f0ba22
commit
ffe80045a9
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
EAPI="8"
|
EAPI="8"
|
||||||
|
|
||||||
inherit toolchain-funcs multilib-minimal
|
inherit dot-a toolchain-funcs multilib-minimal
|
||||||
|
|
||||||
MY_PV="${PV//_/-}"
|
MY_PV="${PV//_/-}"
|
||||||
MY_P="${PN}-${MY_PV}"
|
MY_P="${PN}-${MY_PV}"
|
||||||
@ -34,6 +34,7 @@ src_prepare() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
my_make() {
|
my_make() {
|
||||||
|
use static-libs && lto-guarantee-fat
|
||||||
emake \
|
emake \
|
||||||
PREFIX="${EPREFIX}/usr" \
|
PREFIX="${EPREFIX}/usr" \
|
||||||
LIBDIR="\$(PREFIX)/$(get_libdir)" \
|
LIBDIR="\$(PREFIX)/$(get_libdir)" \
|
||||||
@ -51,5 +52,9 @@ multilib_src_compile() {
|
|||||||
|
|
||||||
multilib_src_install() {
|
multilib_src_install() {
|
||||||
my_make DESTDIR="${D}" install
|
my_make DESTDIR="${D}" install
|
||||||
use static-libs || rm "${ED}"/usr/$(get_libdir)/*.a || die
|
if use static-libs; then
|
||||||
|
strip-lto-bytecode
|
||||||
|
else
|
||||||
|
rm "${ED}"/usr/$(get_libdir)/*.a || die
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
EAPI="8"
|
EAPI="8"
|
||||||
|
|
||||||
inherit toolchain-funcs multilib-minimal
|
inherit dot-a toolchain-funcs multilib-minimal
|
||||||
|
|
||||||
MY_PV="${PV//_/-}"
|
MY_PV="${PV//_/-}"
|
||||||
MY_P="${PN}-${MY_PV}"
|
MY_P="${PN}-${MY_PV}"
|
||||||
@ -34,6 +34,7 @@ src_prepare() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
my_make() {
|
my_make() {
|
||||||
|
use static-libs && lto-guarantee-fat
|
||||||
emake \
|
emake \
|
||||||
PREFIX="${EPREFIX}/usr" \
|
PREFIX="${EPREFIX}/usr" \
|
||||||
LIBDIR="\$(PREFIX)/$(get_libdir)" \
|
LIBDIR="\$(PREFIX)/$(get_libdir)" \
|
||||||
@ -51,5 +52,9 @@ multilib_src_compile() {
|
|||||||
|
|
||||||
multilib_src_install() {
|
multilib_src_install() {
|
||||||
my_make DESTDIR="${D}" install
|
my_make DESTDIR="${D}" install
|
||||||
use static-libs || rm "${ED}"/usr/$(get_libdir)/*.a || die
|
if use static-libs; then
|
||||||
|
strip-lto-bytecode
|
||||||
|
else
|
||||||
|
rm "${ED}"/usr/$(get_libdir)/*.a || die
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user