net-vpn/wireguard: use toolchain's CC and LD explicitly
authorJason A. Donenfeld <zx2c4@gentoo.org>
Fri, 1 Jun 2018 17:13:43 +0000 (19:13 +0200)
committerJason A. Donenfeld <zx2c4@gentoo.org>
Fri, 1 Jun 2018 17:13:52 +0000 (19:13 +0200)
Package-Manager: Portage-2.3.40, Repoman-2.3.9

net-vpn/wireguard/wireguard-0.0.20180531.ebuild
net-vpn/wireguard/wireguard-9999.ebuild

index b8f4649d874ebe31998d3615b98aff1ea3245c13..3a4681c656a92f82985314a3f350fb05a41f3edc 100644 (file)
@@ -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() {
index fdc71975143aeccfc36c234b6341d30201157c81..3a4681c656a92f82985314a3f350fb05a41f3edc 100644 (file)
@@ -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() {