commit:     8d11899d26e069449b3f753623a3e93cdf21b063
Author:     Eli Schwartz <eschwartz93 <AT> gmail <DOT> com>
AuthorDate: Sun Jun 30 23:36:36 2024 +0000
Commit:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
CommitDate: Wed Jul  3 22:36:47 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8d11899d

dev-games/clanlib: mark as strict-aliasing unsafe

Fixed in newer slots.

Closes: https://bugs.gentoo.org/855308
Signed-off-by: Eli Schwartz <eschwartz93 <AT> gmail.com>
Signed-off-by: Eli Schwartz <eschwartz <AT> gentoo.org>

 dev-games/clanlib/clanlib-0.8.1-r2.ebuild | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/dev-games/clanlib/clanlib-0.8.1-r2.ebuild 
b/dev-games/clanlib/clanlib-0.8.1-r2.ebuild
index e14357adc276..6cb8b3b5e63e 100644
--- a/dev-games/clanlib/clanlib-0.8.1-r2.ebuild
+++ b/dev-games/clanlib/clanlib-0.8.1-r2.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-inherit autotools
+inherit autotools flag-o-matic
 
 DESCRIPTION="Multi-platform game development library"
 HOMEPAGE="https://github.com/sphair/ClanLib";
@@ -67,6 +67,13 @@ src_prepare() {
 }
 
 src_configure() {
+       # -Werror=strict-aliasing
+       # https://bugs.gentoo.org/855308
+       # Fixed in newer versions
+       # Do not trust with LTO either.
+       append-flags -fno-strict-aliasing
+       filter-lto
+
        # clanSound only controls mikmod/vorbis so there's
        # no need to pass --{en,dis}able-clanSound ...
        # clanDisplay only controls X, SDL, OpenGL plugins

Reply via email to