commit:     01d46a46cbebb9039d6958046262572caac90cb3
Author:     Jakov Smolic <jakov.smolic <AT> sartura <DOT> hr>
AuthorDate: Sun Feb 14 10:32:51 2021 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sun Feb 14 10:32:51 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=01d46a46

net-misc/cgminer: Apply gcc-10 workaround

* Upstream inactive since 2018

Closes: https://bugs.gentoo.org/707436
Signed-off-by: Jakov Smolic <jakov.smolic <AT> sartura.hr>
Signed-off-by: David Seifert <soap <AT> gentoo.org>

 net-misc/cgminer/cgminer-4.10.0.ebuild | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/net-misc/cgminer/cgminer-4.10.0.ebuild 
b/net-misc/cgminer/cgminer-4.10.0.ebuild
index 1ac87f413db..bcfc4b2aa99 100644
--- a/net-misc/cgminer/cgminer-4.10.0.ebuild
+++ b/net-misc/cgminer/cgminer-4.10.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -19,7 +19,8 @@ IUSE="doc examples udev hardened ncurses ${HARDWARE}"
 
 REQUIRED_USE="|| ( ${HARDWARE} )"
 
-RDEPEND="net-misc/curl
+RDEPEND="
+       net-misc/curl
        >=dev-libs/jansson-2.6
        virtual/libusb:1[udev]
        ncurses? ( sys-libs/ncurses:0= )
@@ -29,6 +30,7 @@ BDEPEND="virtual/pkgconfig"
 
 src_configure() {
        use hardened && append-cflags "-no-pie"
+       append-cflags -fcommon
 
        # PKG_CHECK_MODULES needs PKG_CONFIG for --with-system-jansson.
        export PKG_CONFIG="$(tc-getPKG_CONFIG)"

Reply via email to