Skip to content

Commit

Permalink
games-emulation/melonds-jg: mark as LTO-unsafe, strict-aliasing unsafe
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/931907
Signed-off-by: orbea <[email protected]>
Signed-off-by: Sam James <[email protected]>
  • Loading branch information
orbea authored and thesamesam committed Jun 18, 2024
1 parent a9e6ccf commit b68a28b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
10 changes: 9 additions & 1 deletion games-emulation/melonds-jg/melonds-jg-0.9.5.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

EAPI=8

inherit toolchain-funcs
inherit toolchain-funcs flag-o-matic

MY_PN=${PN%-*}
MY_P=${MY_PN}-${PV}
Expand Down Expand Up @@ -40,6 +40,14 @@ PATCHES=(
)

src_compile() {
# -Werror=strict-aliasing
# https://bugs.gentoo.org/931907
#
# Not trivial to fix and its a problem in melonds upstream.
# Its also uncertain if this port will be updated in the future.
append-flags -fno-strict-aliasing
filter-lto

emake -C jollygood \
CC="$(tc-getCC)" \
CXX="$(tc-getCXX)" \
Expand Down
10 changes: 9 additions & 1 deletion games-emulation/melonds-jg/melonds-jg-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

EAPI=8

inherit toolchain-funcs
inherit toolchain-funcs flag-o-matic

MY_PN=${PN%-*}
MY_P=${MY_PN}-${PV}
Expand Down Expand Up @@ -34,6 +34,14 @@ BDEPEND="
"

src_compile() {
# -Werror=strict-aliasing
# https://bugs.gentoo.org/931907
#
# Not trivial to fix and its a problem in melonds upstream.
# Its also uncertain if this port will be updated in the future.
append-flags -fno-strict-aliasing
filter-lto

emake -C jollygood \
CC="$(tc-getCC)" \
CXX="$(tc-getCXX)" \
Expand Down

0 comments on commit b68a28b

Please sign in to comment.