mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-libs/libbsd: use dot-a.eclass
... to avoid installing broken static libraries w/ LTO. Signed-off-by: Eli Schwartz <eschwartz@gentoo.org>
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
EAPI=8
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/guillemjover.asc
|
||||
inherit flag-o-matic libtool multilib multilib-minimal verify-sig
|
||||
inherit dot-a flag-o-matic libtool multilib multilib-minimal verify-sig
|
||||
|
||||
DESCRIPTION="Library to provide useful functions commonly found on BSD systems"
|
||||
HOMEPAGE="https://libbsd.freedesktop.org/wiki/ https://gitlab.freedesktop.org/libbsd/libbsd"
|
||||
@@ -29,6 +29,8 @@ src_prepare() {
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
lto-guarantee-fat
|
||||
|
||||
# Broken (still) with lld-17 (bug #922342, bug #915068)
|
||||
append-ldflags $(test-flags-CCLD -Wl,--undefined-version)
|
||||
|
||||
@@ -43,6 +45,8 @@ multilib_src_configure() {
|
||||
|
||||
multilib_src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
# always strip due to libbsd-ctor.a
|
||||
strip-lto-bytecode #"${ED}"
|
||||
|
||||
find "${ED}" -type f -name "*.la" -delete || die
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
EAPI=8
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/guillemjover.asc
|
||||
inherit flag-o-matic libtool multilib multilib-minimal verify-sig
|
||||
inherit dot-a flag-o-matic libtool multilib multilib-minimal verify-sig
|
||||
|
||||
DESCRIPTION="Library to provide useful functions commonly found on BSD systems"
|
||||
HOMEPAGE="https://libbsd.freedesktop.org/wiki/ https://gitlab.freedesktop.org/libbsd/libbsd"
|
||||
@@ -30,6 +30,8 @@ src_prepare() {
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
lto-guarantee-fat
|
||||
|
||||
# bug #911726
|
||||
filter-flags -fno-semantic-interposition
|
||||
|
||||
@@ -41,6 +43,8 @@ multilib_src_configure() {
|
||||
|
||||
multilib_src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
# always strip due to libbsd-ctor.a
|
||||
strip-lto-bytecode #"${ED}"
|
||||
|
||||
find "${ED}" -type f -name "*.la" -delete || die
|
||||
|
||||
|
||||
Reference in New Issue
Block a user