mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-libs/bglibs: use dot-a.eclass
... to avoid installing broken static libraries w/ LTO. Closes: https://bugs.gentoo.org/958191 Signed-off-by: Eli Schwartz <eschwartz@gentoo.org>
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit toolchain-funcs
|
||||
inherit dot-a toolchain-funcs
|
||||
|
||||
DESCRIPTION="Bruce Guenter's Libraries Collection"
|
||||
HOMEPAGE="https://untroubled.org/bglibs/"
|
||||
@@ -54,6 +54,7 @@ src_prepare() {
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
lto-guarantee-fat
|
||||
echo "$(tc-getCC) ${CFLAGS}" > conf-cc || die
|
||||
echo "$(tc-getCC) ${LDFLAGS}" > conf-ld || die
|
||||
}
|
||||
@@ -88,6 +89,8 @@ src_install() {
|
||||
dosym libbg.so.2.0.0 /usr/$(get_libdir)/libbg.so
|
||||
dosym ../libbg.so.2.0.0 /usr/$(get_libdir)/bglibs/libbg.so.2.0.0
|
||||
|
||||
strip-lto-bytecode
|
||||
|
||||
rm "${ED}"/usr/$(get_libdir)/bglibs/libbg.la || die
|
||||
|
||||
dodoc ANNOUNCEMENT NEWS README ChangeLog TODO VERSION
|
||||
|
||||
Reference in New Issue
Block a user