summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz93@gmail.com>2024-03-05 16:39:55 -0500
committerSam James <sam@gentoo.org>2024-03-06 03:36:18 +0000
commite886fb559492e6f472ff70aa2794c33e5225c59e (patch)
tree3a22b454dbcf3c2ecba46d7b0ecf533395e04cac
parentsci-libs/profnet: mark as LTO-unsafe (diff)
downloadgentoo-e886fb559492e6f472ff70aa2794c33e5225c59e.tar.gz
gentoo-e886fb559492e6f472ff70aa2794c33e5225c59e.tar.bz2
gentoo-e886fb559492e6f472ff70aa2794c33e5225c59e.zip
media-gfx/arss: mark as LTO-unsafe, strict-aliasing unsafe
Closes: https://bugs.gentoo.org/859604 Signed-off-by: Eli Schwartz <eschwartz93@gmail.com> Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r--media-gfx/arss/arss-0.2.3-r1.ebuild16
1 files changed, 14 insertions, 2 deletions
diff --git a/media-gfx/arss/arss-0.2.3-r1.ebuild b/media-gfx/arss/arss-0.2.3-r1.ebuild
index a194c54b448f..04680a5ffea3 100644
--- a/media-gfx/arss/arss-0.2.3-r1.ebuild
+++ b/media-gfx/arss/arss-0.2.3-r1.ebuild
@@ -1,11 +1,11 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
CMAKE_IN_SOURCE_BUILD="true"
MY_P="${P}-src"
-inherit cmake
+inherit cmake flag-o-matic
DESCRIPTION="Analysis & Resynthesis Sound Spectrograph"
HOMEPAGE="https://arss.sourceforge.net"
@@ -22,3 +22,15 @@ RDEPEND="${DEPEND}"
PATCHES=( "${FILESDIR}"/${P}-fno-common.patch )
DOCS=( ../AUTHORS ../ChangeLog )
+
+src_compile() {
+ # -Werror=strict-aliasing
+ # https://bugs.gentoo.org/859604
+ # Upstream is on sourceforge, inactive since 2009. No bug filed.
+ #
+ # Do not trust it for LTO either.
+ append-flags -fno-strict-aliasing
+ filter-lto
+
+ default
+}