commit:     dd056658c602cf754e9b1d898eacaac73636df2b
Author:     Eli Schwartz <eschwartz93 <AT> gmail <DOT> com>
AuthorDate: Fri Mar  8 01:54:17 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Mar  8 11:09:01 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dd056658

sci-libs/cgnslib: mark as LTO-unsafe

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

 sci-libs/cgnslib/cgnslib-4.3.0-r2.ebuild | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/sci-libs/cgnslib/cgnslib-4.3.0-r2.ebuild 
b/sci-libs/cgnslib/cgnslib-4.3.0-r2.ebuild
index 039b318c01be..39fb7c61d4a2 100644
--- a/sci-libs/cgnslib/cgnslib-4.3.0-r2.ebuild
+++ b/sci-libs/cgnslib/cgnslib-4.3.0-r2.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
@@ -6,7 +6,7 @@ EAPI=8
 FORTRAN_NEEDED="fortran"
 FORTRAN_STANDARD="90 2003"
 
-inherit cmake fortran-2
+inherit cmake flag-o-matic fortran-2
 
 DESCRIPTION="CFD General Notation System standard library"
 HOMEPAGE="
@@ -56,6 +56,11 @@ src_prepare() {
 }
 
 src_configure() {
+       # -Werror=lto-type-mismatch
+       # https://bugs.gentoo.org/862684
+       # https://github.com/CGNS/CGNS/issues/758
+       filter-lto
+
        local mycmakeargs=(
                -DCGNS_BUILD_SHARED=ON
                -DCGNS_USE_SHARED=ON

Reply via email to