commit:     bf241a4260954afb732b4600e8ad82e744135833
Author:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
AuthorDate: Mon Aug  5 04:45:07 2024 +0000
Commit:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
CommitDate: Tue Aug  6 00:18:30 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bf241a42

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

Closes: https://bugs.gentoo.org/858638
Signed-off-by: Eli Schwartz <eschwartz <AT> gentoo.org>

 games-emulation/dosbox/dosbox-0.75_pre4302.ebuild | 8 ++++++++
 games-emulation/dosbox/dosbox-9999.ebuild         | 8 ++++++++
 2 files changed, 16 insertions(+)

diff --git a/games-emulation/dosbox/dosbox-0.75_pre4302.ebuild 
b/games-emulation/dosbox/dosbox-0.75_pre4302.ebuild
index 8ec0aed21784..f3b61cd5fc75 100644
--- a/games-emulation/dosbox/dosbox-0.75_pre4302.ebuild
+++ b/games-emulation/dosbox/dosbox-0.75_pre4302.ebuild
@@ -60,6 +60,14 @@ src_prepare() {
 }
 
 src_configure() {
+       # -Werror=strict-aliasing, -Weror=odr
+       # https://bugs.gentoo.org/858638
+       #
+       # Upstream is kinda dead. Just use dosbox-staging... where I reported
+       # similar issues and they were fixed. ;)
+       append-flags -fno-strict-aliasing
+       filter-lto
+
        use glide && append-cppflags -I"${EPREFIX}"/usr/include/openglide
 
        ac_cv_lib_X11_main=$(usex X yes no) \

diff --git a/games-emulation/dosbox/dosbox-9999.ebuild 
b/games-emulation/dosbox/dosbox-9999.ebuild
index e113bd078a84..e645b0a8b220 100644
--- a/games-emulation/dosbox/dosbox-9999.ebuild
+++ b/games-emulation/dosbox/dosbox-9999.ebuild
@@ -58,6 +58,14 @@ src_prepare() {
 }
 
 src_configure() {
+       # -Werror=strict-aliasing, -Weror=odr
+       # https://bugs.gentoo.org/858638
+       #
+       # Upstream is kinda dead. Just use dosbox-staging... where I reported
+       # similar issues and they were fixed. ;)
+       append-flags -fno-strict-aliasing
+       filter-lto
+
        use glide && append-cppflags -I"${EPREFIX}"/usr/include/openglide
 
        ac_cv_lib_X11_main=$(usex X yes no) \

Reply via email to