summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz93@gmail.com>2024-05-06 01:44:31 -0400
committerSam James <sam@gentoo.org>2024-05-06 07:05:27 +0100
commit29582e0918323c8387c194751daacf3be5806211 (patch)
tree52247cc94268edecaf81276f8f6fbb74fd11dfd6 /dev-games/libnw
parentdev-games/libnw: remove highly confusing sed to "respect CC" (diff)
downloadgentoo-29582e0918323c8387c194751daacf3be5806211.tar.gz
gentoo-29582e0918323c8387c194751daacf3be5806211.tar.bz2
gentoo-29582e0918323c8387c194751daacf3be5806211.zip
dev-games/libnw: mark as LTO-unsafe, strict-aliasing unsafe
Closes: https://bugs.gentoo.org/855314 Signed-off-by: Eli Schwartz <eschwartz93@gmail.com> Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-games/libnw')
-rw-r--r--dev-games/libnw/libnw-1.30.02.ebuild10
1 files changed, 9 insertions, 1 deletions
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
}