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

Closes: https://bugs.gentoo.org/931907
Signed-off-by: orbea <orbea@riseup.net>
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
orbea
2024-05-14 13:41:58 -07:00
committed by Sam James
parent a9e6ccfecc
commit b68a28b227
2 changed files with 18 additions and 2 deletions

View File

@@ -3,7 +3,7 @@
EAPI=8
inherit toolchain-funcs
inherit toolchain-funcs flag-o-matic
MY_PN=${PN%-*}
MY_P=${MY_PN}-${PV}
@@ -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)" \

View File

@@ -3,7 +3,7 @@
EAPI=8
inherit toolchain-funcs
inherit toolchain-funcs flag-o-matic
MY_PN=${PN%-*}
MY_P=${MY_PN}-${PV}
@@ -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)" \