commit:     30d13e67ffe6760317622fec3bf2379565546e71
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Mar 22 08:41:28 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Mar 22 08:43:29 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=30d13e67

sci-libs/cdf: backport LTO filter to stable

Closes: https://bugs.gentoo.org/927487
Bug: https://bugs.gentoo.org/862675
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sci-libs/cdf/cdf-3.8.0-r1.ebuild | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/sci-libs/cdf/cdf-3.8.0-r1.ebuild b/sci-libs/cdf/cdf-3.8.0-r1.ebuild
index 7d3f32ecb62b..7a705868953c 100644
--- a/sci-libs/cdf/cdf-3.8.0-r1.ebuild
+++ b/sci-libs/cdf/cdf-3.8.0-r1.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
 
-inherit java-pkg-opt-2 multilib toolchain-funcs
+inherit flag-o-matic java-pkg-opt-2 multilib toolchain-funcs
 
 MY_DP="${PN}$(ver_cut 1)$(ver_cut 2)"
 MY_P="${MY_DP}_$(ver_cut 3)"
@@ -56,6 +56,10 @@ src_prepare() {
 }
 
 src_compile() {
+       # Reported upstream by email in 2024-03-22 (bug #862675)
+       append-flags -fno-strict-aliasing
+       filter-lto
+
        PV_SO=${PV:0:1}
        emake \
                OS=linux \

Reply via email to