summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz93@gmail.com>2024-03-18 01:44:38 -0400
committerSam James <sam@gentoo.org>2024-03-18 07:20:16 +0000
commitbf8caa832024ebee54c4f30fb6c7ba38d459e4fe (patch)
tree68601c6f93ca277ca42641fe0f39fed517cb3bcc /games-roguelike
parentmedia-libs/openh264: Stabilize 2.4.1 x86, #927224 (diff)
downloadgentoo-bf8caa832024ebee54c4f30fb6c7ba38d459e4fe.tar.gz
gentoo-bf8caa832024ebee54c4f30fb6c7ba38d459e4fe.tar.bz2
gentoo-bf8caa832024ebee54c4f30fb6c7ba38d459e4fe.zip
games-roguelike/scourge: mark as LTO-unsafe, strict-aliasing unsafe
Closes: https://bugs.gentoo.org/859211 Signed-off-by: Eli Schwartz <eschwartz93@gmail.com> Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'games-roguelike')
-rw-r--r--games-roguelike/scourge/scourge-0.21.1-r1.ebuild13
1 files changed, 11 insertions, 2 deletions
diff --git a/games-roguelike/scourge/scourge-0.21.1-r1.ebuild b/games-roguelike/scourge/scourge-0.21.1-r1.ebuild
index a0ae342f3b0e..e9033cb3d9ff 100644
--- a/games-roguelike/scourge/scourge-0.21.1-r1.ebuild
+++ b/games-roguelike/scourge/scourge-0.21.1-r1.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
-inherit autotools desktop
+inherit autotools desktop flag-o-matic
DESCRIPTION="A graphical rogue-like adventure game"
HOMEPAGE="https://sourceforge.net/projects/scourge/"
@@ -57,6 +57,15 @@ src_prepare() {
}
src_configure() {
+ # -Werror=strict-aliasing
+ # https://bugs.gentoo.org/859211
+ # Upstream sourceforge last updated in 2015, and that appears to have
+ # been uploading existing files. svn last updated 2011. No bug filed. ;)
+ #
+ # Do not trust it for LTO either.
+ append-flags -fno-strict-aliasing
+ filter-lto
+
econf \
--disable-rpath \
--with-data-dir="${EPREFIX}"/usr/share/${PN}