dev-util/xdp-tools: Allow to use different compilers

Currently CC and AR are hardcoded to gcc/ar. Allow compilation e.g. with clang.

Closes: https://bugs.gentoo.org/785016
Package-Manager: Portage-3.0.17, Repoman-3.0.2
Signed-off-by: Kurt Kanzenbach <kurt@kmk-computers.de>
This commit is contained in:
Kurt Kanzenbach
2021-04-22 16:25:29 +02:00
parent 5af8fc2248
commit dc6f9381e1

View File

@@ -3,7 +3,7 @@
EAPI=7
inherit linux-info llvm multilib
inherit linux-info llvm multilib toolchain-funcs
DESCRIPTION="Utilities and example programs for use with XDP"
HOMEPAGE="https://github.com/xdp-project/xdp-tools"
@@ -51,6 +51,8 @@ src_configure() {
src_compile() {
emake \
CC="$(tc-getCC)" \
AR="$(tc-getAR)" \
PRODUCTION=1 \
DYNAMIC_LIBXDP=1 \
FORCE_SYSTEM_LIBBPF=1 \