commit:     82987429411715840476b5425a48c1fb538e9804
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Oct 31 19:09:56 2020 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Nov  1 00:25:55 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=82987429

sci-mathematics/otter: fix build with -fno-common

Too many definitions to bother with a patch and
dead upstream, so pass in -fcommon.

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

 sci-mathematics/otter/otter-3.3-r3.ebuild | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/sci-mathematics/otter/otter-3.3-r3.ebuild 
b/sci-mathematics/otter/otter-3.3-r3.ebuild
index eec8a1d2516..6eb0dc06c30 100644
--- a/sci-mathematics/otter/otter-3.3-r3.ebuild
+++ b/sci-mathematics/otter/otter-3.3-r3.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
+EAPI=7
 
-inherit toolchain-funcs
+inherit flag-o-matic toolchain-funcs
 
 DESCRIPTION="An Automated Deduction System"
 HOMEPAGE="http://www.cs.unm.edu/~mccune/otter/";
@@ -12,7 +12,6 @@ SRC_URI="http://www.cs.unm.edu/~mccune/otter/${P}.tar.gz";
 LICENSE="otter"
 SLOT="0"
 KEYWORDS="amd64 ~ppc x86 ~amd64-linux ~x86-linux ~ppc-macos"
-IUSE=""
 
 RDEPEND="
        x11-libs/libX11
@@ -25,6 +24,10 @@ PATCHES=(
        "${FILESDIR}"/${P}-gold.patch
 )
 
+src_configure() {
+       append-cflags -fcommon
+}
+
 src_compile() {
        tc-export CC
 

Reply via email to