commit: 0e70dbcc07413a6f106b7462c277ce919db08099 Author: Ronny (tastytea) Gutbrod <gentoo <AT> tastytea <DOT> de> AuthorDate: Fri Aug 19 15:46:33 2022 +0000 Commit: Ronny Gutbrod <gentoo <AT> tastytea <DOT> de> CommitDate: Fri Aug 19 15:46:33 2022 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=0e70dbcc
dev-libs/mtxclient: work around LTO build failure Closes: https://bugs.gentoo.org/861731 Signed-off-by: Ronny (tastytea) Gutbrod <gentoo <AT> tastytea.de> dev-libs/mtxclient/mtxclient-0.8.0.ebuild | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/dev-libs/mtxclient/mtxclient-0.8.0.ebuild b/dev-libs/mtxclient/mtxclient-0.8.0.ebuild index 7b9d756dc..a3e74c2c7 100644 --- a/dev-libs/mtxclient/mtxclient-0.8.0.ebuild +++ b/dev-libs/mtxclient/mtxclient-0.8.0.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit cmake +inherit cmake flag-o-matic DESCRIPTION="Client API library for Matrix, built on top of Boost.Asio" HOMEPAGE="https://github.com/Nheko-Reborn/mtxclient" @@ -33,6 +33,14 @@ PATCHES=( "${FILESDIR}/0.6.0_remove_network_tests.patch" ) +src_prepare() { + if use test; then + filter-lto # bug #861731 + fi + + cmake_src_prepare +} + src_configure() { local -a mycmakeargs=( -DBUILD_LIB_TESTS="$(usex test)"