summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@gentoo.org>2024-08-05 00:45:07 -0400
committerEli Schwartz <eschwartz@gentoo.org>2024-08-05 20:18:30 -0400
commitbf241a4260954afb732b4600e8ad82e744135833 (patch)
treee5aed414d5be61081b48d1c80652b65421ca4a45 /games-emulation
parentdev-libs/libportal: prevent automagically building against gtk[X,wayland] (diff)
downloadgentoo-bf241a4260954afb732b4600e8ad82e744135833.tar.gz
gentoo-bf241a4260954afb732b4600e8ad82e744135833.tar.bz2
gentoo-bf241a4260954afb732b4600e8ad82e744135833.zip
games-emulation/dosbox: mark as LTO-unsafe, strict-aliasing unsafe
Closes: https://bugs.gentoo.org/858638 Signed-off-by: Eli Schwartz <eschwartz@gentoo.org>
Diffstat (limited to 'games-emulation')
-rw-r--r--games-emulation/dosbox/dosbox-0.75_pre4302.ebuild8
-rw-r--r--games-emulation/dosbox/dosbox-9999.ebuild8
2 files changed, 16 insertions, 0 deletions
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) \