From ee8bbed8ed79b6eaf0887c1eb52610d3c19be996 Mon Sep 17 00:00:00 2001 From: orbea Date: Mon, 7 Oct 2024 07:50:12 -0700 Subject: games-emulation/rmg: mark as LTO-unsafe, strict-aliasing unsafe Signed-off-by: orbea Signed-off-by: Eli Schwartz --- games-emulation/rmg/rmg-0.6.5.ebuild | 9 ++++++++- games-emulation/rmg/rmg-9999.ebuild | 9 ++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) (limited to 'games-emulation/rmg') diff --git a/games-emulation/rmg/rmg-0.6.5.ebuild b/games-emulation/rmg/rmg-0.6.5.ebuild index d6de051e2f28..6ca37bec7198 100644 --- a/games-emulation/rmg/rmg-0.6.5.ebuild +++ b/games-emulation/rmg/rmg-0.6.5.ebuild @@ -27,7 +27,7 @@ CRATES=" winapi@0.3.9 " -inherit cargo cmake xdg +inherit cargo cmake flag-o-matic xdg MY_PN="${PN^^}" MY_P="${MY_PN}-${PV}" @@ -117,6 +117,13 @@ src_prepare() { } src_configure() { + # -Werror=strict-aliasing + # https://github.com/gonetz/GLideN64/issues/2877 + # + # Disable strict-aliasing until its handled upstream. + append-flags -fno-strict-aliasing + filter-lto + export PKG_CONFIG_ALLOW_CROSS=1 local mycmakeargs=( diff --git a/games-emulation/rmg/rmg-9999.ebuild b/games-emulation/rmg/rmg-9999.ebuild index d6de051e2f28..6ca37bec7198 100644 --- a/games-emulation/rmg/rmg-9999.ebuild +++ b/games-emulation/rmg/rmg-9999.ebuild @@ -27,7 +27,7 @@ CRATES=" winapi@0.3.9 " -inherit cargo cmake xdg +inherit cargo cmake flag-o-matic xdg MY_PN="${PN^^}" MY_P="${MY_PN}-${PV}" @@ -117,6 +117,13 @@ src_prepare() { } src_configure() { + # -Werror=strict-aliasing + # https://github.com/gonetz/GLideN64/issues/2877 + # + # Disable strict-aliasing until its handled upstream. + append-flags -fno-strict-aliasing + filter-lto + export PKG_CONFIG_ALLOW_CROSS=1 local mycmakeargs=( -- cgit v1.2.3-65-gdbad