commit:     ef3b07820955e5152f355d9fd294028aa73e203d
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 27 05:14:40 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Feb 27 05:15:51 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ef3b0782

sci-libs/sundials: fix gcc 10 build

Closes: https://bugs.gentoo.org/707240
Package-Manager: Portage-3.0.15, Repoman-3.0.2
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sci-libs/sundials/sundials-5.2.0.ebuild | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/sci-libs/sundials/sundials-5.2.0.ebuild 
b/sci-libs/sundials/sundials-5.2.0.ebuild
index aa14eeb5320..3d60a524cc2 100644
--- a/sci-libs/sundials/sundials-5.2.0.ebuild
+++ b/sci-libs/sundials/sundials-5.2.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -8,7 +8,7 @@ FORTRAN_NEEDED=fortran
 FORTRAN_STANDARD="77 90"
 # if FFLAGS and FCFLAGS are set then should be equal
 
-inherit cmake fortran-2 toolchain-funcs
+inherit cmake fortran-2 toolchain-funcs flag-o-matic
 
 DESCRIPTION="Suite of nonlinear solvers"
 HOMEPAGE="https://computation.llnl.gov/projects/sundials";
@@ -38,6 +38,13 @@ pkg_setup() {
        fi
 }
 
+src_prepare() {
+       # bug #707240
+       append-cflags -fcommon
+
+       cmake_src_prepare
+}
+
 src_configure() {
        mycmakeargs+=(
                -DBUILD_SHARED_LIBS=ON

Reply via email to