commit:     6579c1e3f27bdcf07cc200f0dc4011a8559eaff9
Author:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
AuthorDate: Wed Aug 13 00:41:12 2025 +0000
Commit:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
CommitDate: Thu Aug 14 05:01:59 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6579c1e3

games-emulation/melonds: mark as strict-aliasing unsafe, LTO-unsafe

Closes: https://bugs.gentoo.org/959632
Signed-off-by: Eli Schwartz <eschwartz <AT> gentoo.org>

 games-emulation/melonds/melonds-1.0.ebuild    | 8 +++++++-
 games-emulation/melonds/melonds-1.0_rc.ebuild | 8 +++++++-
 games-emulation/melonds/melonds-9999.ebuild   | 8 +++++++-
 3 files changed, 21 insertions(+), 3 deletions(-)

diff --git a/games-emulation/melonds/melonds-1.0.ebuild 
b/games-emulation/melonds/melonds-1.0.ebuild
index 70eb307c79f6..38d25d364487 100644
--- a/games-emulation/melonds/melonds-1.0.ebuild
+++ b/games-emulation/melonds/melonds-1.0.ebuild
@@ -7,7 +7,7 @@ REAL_PN="melonDS"
 REAL_PV="${PV/_rc/rc}"
 REAL_P="${REAL_PN}-${REAL_PV}"
 
-inherit cmake readme.gentoo-r1 toolchain-funcs xdg
+inherit cmake flag-o-matic readme.gentoo-r1 toolchain-funcs xdg
 
 DESCRIPTION="Nintendo DS emulator, sorta"
 HOMEPAGE="http://melonds.kuribo64.net
@@ -65,6 +65,12 @@ Place them in ~/.config/melonDS
 Those files can be extracted from devices or found somewhere on the Internet 
;-)"
 
 src_configure() {
+       # -Werror=strict-aliasing
+       # https://bugs.gentoo.org/959632
+       # https://github.com/melonDS-emu/melonDS/issues/2349
+       append-flags -fno-strict-aliasing
+       filter-lto
+
        local -a mycmakeargs=(
                -DUSE_CCACHE="OFF"
 

diff --git a/games-emulation/melonds/melonds-1.0_rc.ebuild 
b/games-emulation/melonds/melonds-1.0_rc.ebuild
index 582290394b82..ef8370e74f5b 100644
--- a/games-emulation/melonds/melonds-1.0_rc.ebuild
+++ b/games-emulation/melonds/melonds-1.0_rc.ebuild
@@ -7,7 +7,7 @@ REAL_PN="melonDS"
 REAL_PV="${PV/_rc/rc}"
 REAL_P="${REAL_PN}-${REAL_PV}"
 
-inherit cmake readme.gentoo-r1 toolchain-funcs xdg
+inherit cmake flag-o-matic readme.gentoo-r1 toolchain-funcs xdg
 
 DESCRIPTION="Nintendo DS emulator, sorta"
 HOMEPAGE="http://melonds.kuribo64.net
@@ -65,6 +65,12 @@ Place them in ~/.config/melonDS
 Those files can be extracted from devices or found somewhere on the Internet 
;-)"
 
 src_configure() {
+       # -Werror=strict-aliasing
+       # https://bugs.gentoo.org/959632
+       # https://github.com/melonDS-emu/melonDS/issues/2349
+       append-flags -fno-strict-aliasing
+       filter-lto
+
        local -a mycmakeargs=(
                -DUSE_CCACHE="OFF"
 

diff --git a/games-emulation/melonds/melonds-9999.ebuild 
b/games-emulation/melonds/melonds-9999.ebuild
index 70eb307c79f6..38d25d364487 100644
--- a/games-emulation/melonds/melonds-9999.ebuild
+++ b/games-emulation/melonds/melonds-9999.ebuild
@@ -7,7 +7,7 @@ REAL_PN="melonDS"
 REAL_PV="${PV/_rc/rc}"
 REAL_P="${REAL_PN}-${REAL_PV}"
 
-inherit cmake readme.gentoo-r1 toolchain-funcs xdg
+inherit cmake flag-o-matic readme.gentoo-r1 toolchain-funcs xdg
 
 DESCRIPTION="Nintendo DS emulator, sorta"
 HOMEPAGE="http://melonds.kuribo64.net
@@ -65,6 +65,12 @@ Place them in ~/.config/melonDS
 Those files can be extracted from devices or found somewhere on the Internet 
;-)"
 
 src_configure() {
+       # -Werror=strict-aliasing
+       # https://bugs.gentoo.org/959632
+       # https://github.com/melonDS-emu/melonDS/issues/2349
+       append-flags -fno-strict-aliasing
+       filter-lto
+
        local -a mycmakeargs=(
                -DUSE_CCACHE="OFF"
 

Reply via email to