summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason A. Donenfeld <zx2c4@gentoo.org>2018-06-01 19:13:43 +0200
committerJason A. Donenfeld <zx2c4@gentoo.org>2018-06-01 19:13:52 +0200
commitbd1258350895e8c44db5bbb16808c0da93c92098 (patch)
tree2920c83b5afcddb3619dd29a37504afdb7633528
parentdev-ruby/webmock: add ruby25 (diff)
downloadgentoo-bd1258350895e8c44db5bbb16808c0da93c92098.tar.gz
gentoo-bd1258350895e8c44db5bbb16808c0da93c92098.tar.bz2
gentoo-bd1258350895e8c44db5bbb16808c0da93c92098.zip
net-vpn/wireguard: use toolchain's CC and LD explicitly
Package-Manager: Portage-2.3.40, Repoman-2.3.9
-rw-r--r--net-vpn/wireguard/wireguard-0.0.20180531.ebuild2
-rw-r--r--net-vpn/wireguard/wireguard-9999.ebuild4
2 files changed, 3 insertions, 3 deletions
diff --git a/net-vpn/wireguard/wireguard-0.0.20180531.ebuild b/net-vpn/wireguard/wireguard-0.0.20180531.ebuild
index b8f4649d874e..3a4681c656a9 100644
--- a/net-vpn/wireguard/wireguard-0.0.20180531.ebuild
+++ b/net-vpn/wireguard/wireguard-0.0.20180531.ebuild
@@ -41,7 +41,7 @@ src_compile() {
BUILD_PARAMS="KERNELDIR=${KERNEL_DIR}"
use debug && BUILD_PARAMS="CONFIG_WIREGUARD_DEBUG=y ${BUILD_PARAMS}"
use module && linux-mod_src_compile
- use tools && emake RUNSTATEDIR="${EPREFIX}/run" -C src/tools
+ use tools && emake RUNSTATEDIR="${EPREFIX}/run" -C src/tools CC="$(tc-getCC)" LD="$(tc-getLD)"
}
src_install() {
diff --git a/net-vpn/wireguard/wireguard-9999.ebuild b/net-vpn/wireguard/wireguard-9999.ebuild
index fdc71975143a..3a4681c656a9 100644
--- a/net-vpn/wireguard/wireguard-9999.ebuild
+++ b/net-vpn/wireguard/wireguard-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
@@ -41,7 +41,7 @@ src_compile() {
BUILD_PARAMS="KERNELDIR=${KERNEL_DIR}"
use debug && BUILD_PARAMS="CONFIG_WIREGUARD_DEBUG=y ${BUILD_PARAMS}"
use module && linux-mod_src_compile
- use tools && emake RUNSTATEDIR="${EPREFIX}/run" -C src/tools
+ use tools && emake RUNSTATEDIR="${EPREFIX}/run" -C src/tools CC="$(tc-getCC)" LD="$(tc-getLD)"
}
src_install() {