commit:     c2ff013eccf3957a6a0980005fb0a3eb6745dfce
Author:     Bernd Waibel <waebbl-gentoo <AT> posteo <DOT> net>
AuthorDate: Wed Aug 10 15:37:37 2022 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Tue Aug 23 12:09:37 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c2ff013e

sci-libs/med: filter lto flags

Closes: https://bugs.gentoo.org/862900
Bug: 
https://discourse.salome-platform.org/t/build-issue-with-medfile-and-lto-werror-lto-type-mismatch/323/2
Signed-off-by: Bernd Waibel <waebbl-gentoo <AT> posteo.net>
Closes: https://github.com/gentoo/gentoo/pull/26813
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>

 sci-libs/med/med-4.1.1.ebuild | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/sci-libs/med/med-4.1.1.ebuild b/sci-libs/med/med-4.1.1.ebuild
index 636cb55f6c71..ff91fb7b8fd2 100644
--- a/sci-libs/med/med-4.1.1.ebuild
+++ b/sci-libs/med/med-4.1.1.ebuild
@@ -7,7 +7,7 @@ FORTRAN_NEEDED=fortran
 
 PYTHON_COMPAT=( python3_{8..11} )
 
-inherit cmake fortran-2 python-single-r1
+inherit cmake flag-o-matic fortran-2 python-single-r1
 
 DESCRIPTION="A library to store and exchange meshed data or computation 
results"
 HOMEPAGE="https://www.salome-platform.org/user-section/about/med";
@@ -62,6 +62,9 @@ src_prepare() {
        sed -e 's|doc/med-${MED_STR_VERSION}|doc/med-${MED_STR_VERSION}/html|' \
                -i CMakeLists.txt || die "fix doc path failed"
 
+       # bug #862900, already reported upstream. CHECK on updates!
+       filter-lto
+
        cmake_src_prepare
 }
 

Reply via email to