commit: ee8bbed8ed79b6eaf0887c1eb52610d3c19be996
Author: orbea <orbea <AT> riseup <DOT> net>
AuthorDate: Mon Oct 7 14:50:12 2024 +0000
Commit: Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
CommitDate: Wed Oct 9 17:26:38 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ee8bbed8
games-emulation/rmg: mark as LTO-unsafe, strict-aliasing unsafe
Signed-off-by: orbea <orbea <AT> riseup.net>
Signed-off-by: Eli Schwartz <eschwartz <AT> gentoo.org>
games-emulation/rmg/rmg-0.6.5.ebuild | 9 ++++++++-
games-emulation/rmg/rmg-9999.ebuild | 9 ++++++++-
2 files changed, 16 insertions(+), 2 deletions(-)
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="
[email protected]
"
-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="
[email protected]
"
-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=(