Skip to content

Commit

Permalink
net-wireless/rfkill: Do not set toolchain variables in global scope; …
Browse files Browse the repository at this point in the history
…closes bug #593408 by Michał Górny.

Package-Manager: portage-2.3.1
  • Loading branch information
tonyvroon committed Sep 27, 2016
1 parent b82f278 commit 68aa66b
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions net-wireless/rfkill/rfkill-0.5.ebuild
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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() {
Expand Down

0 comments on commit 68aa66b

Please sign in to comment.