diff --git a/sys-libs/libcap-ng/libcap-ng-0.8.5.ebuild b/sys-libs/libcap-ng/libcap-ng-0.8.5.ebuild index 450f6fdf1c329..19b64d691fc4e 100644 --- a/sys-libs/libcap-ng/libcap-ng-0.8.5.ebuild +++ b/sys-libs/libcap-ng/libcap-ng-0.8.5.ebuild @@ -6,7 +6,7 @@ EAPI=8 # Keep an eye on Fedora's packaging (https://src.fedoraproject.org/rpms/libcap-ng/tree/rawhide) for patches # Same maintainer in Fedora as upstream PYTHON_COMPAT=( python3_{11..14} ) -inherit autotools flag-o-matic out-of-source-utils python-r1 +inherit autotools dot-a flag-o-matic out-of-source-utils python-r1 DESCRIPTION="POSIX 1003.1e capabilities" HOMEPAGE="https://people.redhat.com/sgrubb/libcap-ng/" @@ -38,6 +38,9 @@ src_prepare() { src_configure() { use sparc && replace-flags -O? -O0 + # bug #960469 + use static-libs && lto-guarantee-fat + local ECONF_SOURCE="${S}" local myconf=( @@ -97,5 +100,8 @@ src_install() { emake -C "${BUILD_DIR}" DESTDIR="${D}" install fi + # bug #960469 + use static-libs && strip-lto-bytecode + find "${ED}" -name '*.la' -delete || die } diff --git a/sys-libs/libcap-ng/libcap-ng-0.9.3.ebuild b/sys-libs/libcap-ng/libcap-ng-0.9.3.ebuild index aa23c3f94e999..d50163ebb2ea5 100644 --- a/sys-libs/libcap-ng/libcap-ng-0.9.3.ebuild +++ b/sys-libs/libcap-ng/libcap-ng-0.9.3.ebuild @@ -6,7 +6,7 @@ EAPI=8 # Keep an eye on Fedora's packaging (https://src.fedoraproject.org/rpms/libcap-ng/tree/rawhide) for patches # Same maintainer in Fedora as upstream PYTHON_COMPAT=( python3_{11..14} ) -inherit autotools flag-o-matic out-of-source-utils python-r1 +inherit autotools dot-a flag-o-matic out-of-source-utils python-r1 DESCRIPTION="POSIX 1003.1e capabilities" HOMEPAGE="https://people.redhat.com/sgrubb/libcap-ng/" @@ -51,6 +51,9 @@ src_prepare() { src_configure() { use sparc && replace-flags -O? -O0 + # bug #960469 + use static-libs && lto-guarantee-fat + local ECONF_SOURCE="${S}" local myconf=( @@ -112,5 +115,8 @@ src_install() { emake -C "${BUILD_DIR}" DESTDIR="${D}" install fi + # bug #960469 + use static-libs && strip-lto-bytecode + find "${ED}" -name '*.la' -delete || die }