commit:     29582e0918323c8387c194751daacf3be5806211
Author:     Eli Schwartz <eschwartz93 <AT> gmail <DOT> com>
AuthorDate: Mon May  6 05:44:31 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon May  6 06:05:27 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=29582e09

dev-games/libnw: mark as LTO-unsafe, strict-aliasing unsafe

Closes: https://bugs.gentoo.org/855314
Signed-off-by: Eli Schwartz <eschwartz93 <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-games/libnw/libnw-1.30.02.ebuild | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/dev-games/libnw/libnw-1.30.02.ebuild 
b/dev-games/libnw/libnw-1.30.02.ebuild
index 385052cc6d6e..668d19690ede 100644
--- a/dev-games/libnw/libnw-1.30.02.ebuild
+++ b/dev-games/libnw/libnw-1.30.02.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-inherit autotools
+inherit autotools flag-o-matic
 
 DESCRIPTION="Tools and libraries for NWN file manipulation"
 HOMEPAGE="https://sourceforge.net/projects/openknights";
@@ -23,9 +23,17 @@ DOCS=( AUTHORS ChangeLog NEWS README README.tech TODO )
 src_prepare() {
        default
        eautoreconf
+
 }
 
 src_configure() {
+       # -Werror=strict-aliasing
+       # https://bugs.gentoo.org/855314
+       #
+       # Sourceforge software dead since 2006, no point reporting anything.
+       append-flags -fno-strict-aliasing
+       filter-lto
+
        econf --disable-static
 }
 

Reply via email to