commit:     cc9850529837ef703aedff1a5b59093371645587
Author:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
AuthorDate: Tue Feb  4 09:18:51 2020 +0000
Commit:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
CommitDate: Tue Feb  4 09:21:14 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cc985052

net-misc/packETH: Set CC for USE=cli

Package-Manager: Portage-2.3.87, Repoman-2.3.20
Bug: https://bugs.gentoo.org/show_bug.cgi?id=708190
Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>

 net-misc/packETH/packETH-2.1.ebuild | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/net-misc/packETH/packETH-2.1.ebuild 
b/net-misc/packETH/packETH-2.1.ebuild
index 1bfcc33114e..75ec8e7348e 100644
--- a/net-misc/packETH/packETH-2.1.ebuild
+++ b/net-misc/packETH/packETH-2.1.ebuild
@@ -2,7 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
-inherit autotools
+inherit autotools toolchain-funcs
 
 DESCRIPTION="Packet generator tool for ethernet"
 HOMEPAGE="http://packeth.sourceforge.net/";
@@ -44,7 +44,8 @@ src_configure() {
 
 src_compile() {
        use gtk && default
-       use cli && emake CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" -C cli
+       use cli && emake \
+               CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" -C cli
 }
 
 src_install() {

Reply via email to