commit:     7612d2e0d4a2b4f601da081b03ec29d194b5e884
Author:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
AuthorDate: Mon Aug 18 00:32:01 2025 +0000
Commit:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
CommitDate: Tue Aug 19 19:05:57 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7612d2e0

games-emulation/dosbox: reapply LTO-unsafe flags

Reapplies bf241a4260954afb732b4600e8ad82e744135833.

In 85b101dd45fb4f8c3a898dbf7826e108c3fabcf6, a patch from 10 months
before was merged without rebasing, and various changes were dropped.
This is one of them. So reapply those changes.

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

 games-emulation/dosbox/dosbox-0.75_pre4302-r1.ebuild | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/games-emulation/dosbox/dosbox-0.75_pre4302-r1.ebuild 
b/games-emulation/dosbox/dosbox-0.75_pre4302-r1.ebuild
index fbec03ae9869..bbbc7d44c1ef 100644
--- a/games-emulation/dosbox/dosbox-0.75_pre4302-r1.ebuild
+++ b/games-emulation/dosbox/dosbox-0.75_pre4302-r1.ebuild
@@ -63,6 +63,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
 
        local -x ac_cv_lib_X11_main=$(usex X yes no)

Reply via email to