diff --git a/games-emulation/melonds/melonds-1.0.ebuild b/games-emulation/melonds/melonds-1.0.ebuild index 70eb307c79f64..38d25d364487d 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 582290394b829..ef8370e74f5b6 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 70eb307c79f64..38d25d364487d 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"