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@skole.hr>
This commit is contained in:
Duje Mihanović
2022-07-25 12:53:45 +02:00
parent 993172f995
commit 0080fcb188

View File

@@ -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() {