commit:     1ebd8326257a79006c4517d93f3a07eadd000834
Author:     Eli Schwartz <eschwartz93 <AT> gmail <DOT> com>
AuthorDate: Wed Mar 13 19:26:45 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Mar 13 21:04:08 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1ebd8326

media-libs/libfpx: mark as LTO-unsafe, strict-aliasing unsafe

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

 media-libs/libfpx/libfpx-1.3.1_p10.ebuild | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/media-libs/libfpx/libfpx-1.3.1_p10.ebuild 
b/media-libs/libfpx/libfpx-1.3.1_p10.ebuild
index d1090723cb3e..782c66231228 100644
--- a/media-libs/libfpx/libfpx-1.3.1_p10.ebuild
+++ b/media-libs/libfpx/libfpx-1.3.1_p10.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -30,6 +30,14 @@ src_prepare() {
 }
 
 src_configure() {
+       # -Werror=strict-aliasing
+       # https://bugs.gentoo.org/859913
+       # https://github.com/ImageMagick/libfpx/issues/6
+       #
+       # Do not trust for LTO either
+       append-flags -fno-strict-aliasing
+       filter-lto
+
        append-ldflags -Wl,--no-undefined
        econf \
                $(use_enable static-libs static) \

Reply via email to