commit:     aaaf2b02085fe368746241561c29050eca562882
Author:     Eli Schwartz <eschwartz93 <AT> gmail <DOT> com>
AuthorDate: Fri Mar 29 15:32:28 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Mar 29 18:45:16 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aaaf2b02

games-strategy/ja2-stracciatella: mark as LTO-unsafe

Closes: https://bugs.gentoo.org/916965
Signed-off-by: Eli Schwartz <eschwartz93 <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 games-strategy/ja2-stracciatella/ja2-stracciatella-0.21.0.ebuild | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/games-strategy/ja2-stracciatella/ja2-stracciatella-0.21.0.ebuild 
b/games-strategy/ja2-stracciatella/ja2-stracciatella-0.21.0.ebuild
index c3eefb3961b1..52c5e077966c 100644
--- a/games-strategy/ja2-stracciatella/ja2-stracciatella-0.21.0.ebuild
+++ b/games-strategy/ja2-stracciatella/ja2-stracciatella-0.21.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -163,7 +163,7 @@ [email protected]
 # See dependencies/lib-lua/CMakeLists.txt
 LUA_COMPAT=( lua5-3 )
 
-inherit cargo cmake lua-single xdg
+inherit cargo cmake flag-o-matic lua-single xdg
 
 DESCRIPTION="An improved, cross-platform, stable Jagged Alliance 2 runtime"
 HOMEPAGE="https://github.com/ja2-stracciatella/";
@@ -207,6 +207,11 @@ src_prepare() {
 }
 
 src_configure() {
+       # -Werror=odr
+       # https://bugs.gentoo.org/916965
+       # https://github.com/ja2-stracciatella/ja2-stracciatella/issues/1963
+       filter-lto
+
        local mycmakeargs=(
                -DUSE_SCCACHE=OFF
 

Reply via email to