net-wireless/rfkill: Do not set toolchain variables in global scope; closes bug ...
authorTony Vroon <chainsaw@gentoo.org>
Tue, 27 Sep 2016 13:13:19 +0000 (14:13 +0100)
committerTony Vroon <chainsaw@gentoo.org>
Tue, 27 Sep 2016 13:13:45 +0000 (14:13 +0100)
Package-Manager: portage-2.3.1

net-wireless/rfkill/rfkill-0.5.ebuild

index 248b23211b500502c89786bdb711e005bb556c5a..4453dc7f4e563cb02952f6a5431dca80bb53e37d 100644 (file)
@@ -1,8 +1,8 @@
-# Copyright 1999-2013 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
-EAPI=5
+EAPI=6
 
 inherit toolchain-funcs
 
@@ -18,11 +18,8 @@ IUSE=""
 RDEPEND=""
 DEPEND=""
 
-CC=$(tc-getCC)
-LD=$(tc-getLD)
-
 src_compile() {
-       emake V=1 || die "Failed to compile"
+       emake CC=$(tc-getCC) LD=$(tc-getLD) V=1 || die "Failed to compile"
 }
 
 src_install() {