commit:     0080fcb188264b62ff506e7caed01adc80336fc8
Author:     Duje Mihanović <duje.mihanovic <AT> skole <DOT> hr>
AuthorDate: Mon Jul 25 10:53:45 2022 +0000
Commit:     Duje Mihanović <duje.mihanovic <AT> skole <DOT> hr>
CommitDate: Mon Jul 25 10:53:45 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=0080fcb1

games-fps/assaultcube: force disable LTO

Migrating the package to GCC would probably be a better long-term solution.

Closes: https://bugs.gentoo.org/859991
Signed-off-by: Duje Mihanović <duje.mihanovic <AT> skole.hr>

 games-fps/assaultcube/assaultcube-1.3.0.2.ebuild | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/games-fps/assaultcube/assaultcube-1.3.0.2.ebuild 
b/games-fps/assaultcube/assaultcube-1.3.0.2.ebuild
index ef8e8f81f..a1169191a 100644
--- a/games-fps/assaultcube/assaultcube-1.3.0.2.ebuild
+++ b/games-fps/assaultcube/assaultcube-1.3.0.2.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit desktop xdg-utils
+inherit desktop xdg-utils flag-o-matic
 
 DESCRIPTION="Free multiplayer FPS based on the Cube engine"
 HOMEPAGE="https://assault.cubers.net/";
@@ -22,14 +22,15 @@ RDEPEND="sys-libs/zlib
 DEPEND="${RDEPEND}"
 BDEPEND="sys-devel/clang"
 PATCHES=(
-       "${FILESDIR}/assaultcube-1.3.0.2-respect-ldflags.patch"
-       "${FILESDIR}/assaultcube-1.3.0.2-fix-checkinstall.patch" # a script 
which checks for required libs and certain parts of the game
+       "${FILESDIR}/${PN}-1.3.0.2-respect-ldflags.patch"
+       "${FILESDIR}/${PN}-1.3.0.2-fix-checkinstall.patch" # a script which 
checks for required libs and certain parts of the game
 )
 IUSE="debug"
 
 src_prepare() {
        default
        sed -i 's|//#define PRODUCTION|#define PRODUCTION|' 
"${S}/source/src/cube.h"
+       filter-lto
 }
 
 src_compile() {

Reply via email to