mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-11 08:03:16 -04:00
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:
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user