commit:     2fda7f272d397dd858a922c8f0a061c9f486854e
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Mar 15 06:48:57 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Mar 15 06:48:57 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2fda7f27

dev-lang/cfortran: filter LTO, no-SA

The upstream situation here is kind of weird, it's a mix of Debian/GH. No
activity in a few years and we already apply a bunch of other workarounds
so shoving no LTO + no-SA in too.

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

 dev-lang/cfortran/cfortran-20210827.ebuild | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/dev-lang/cfortran/cfortran-20210827.ebuild 
b/dev-lang/cfortran/cfortran-20210827.ebuild
index 59c7cf784e70..14f0115b8030 100644
--- a/dev-lang/cfortran/cfortran-20210827.ebuild
+++ b/dev-lang/cfortran/cfortran-20210827.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -40,8 +40,11 @@ src_prepare() {
 }
 
 src_configure() {
-       use sparc && append-fflags $(test-flags-FC -fno-store-merging 
-fno-tree-slp-vectorize) # bug 818400
-       append-cflags $(test-flags-CC -fcommon) # bug 899452
+       use sparc && append-fflags $(test-flags-FC -fno-store-merging 
-fno-tree-slp-vectorize) # bug #818400
+       # bug #866560
+       filter-lto
+       append-flags -fno-strict-aliasing
+       append-cflags $(test-flags-CC -fcommon) # bug #899452
        default
 }
 

Reply via email to