commit:     e091f25b0e16f971e2693d79b4a8bee1b11d9050
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Dec  5 03:23:16 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Dec  5 03:26:19 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e091f25b

dev-util/bcc: fix pkg-config call

Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-util/bcc/bcc-0.23.0-r3.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev-util/bcc/bcc-0.23.0-r3.ebuild 
b/dev-util/bcc/bcc-0.23.0-r3.ebuild
index dc810e641127..20e896fce14b 100644
--- a/dev-util/bcc/bcc-0.23.0-r3.ebuild
+++ b/dev-util/bcc/bcc-0.23.0-r3.ebuild
@@ -7,7 +7,7 @@ LUA_COMPAT=( luajit )
 PYTHON_COMPAT=( python3_{7..10} )
 LLVM_MAX_SLOT=13
 
-inherit cmake eapi8-dosym linux-info llvm lua-single python-r1
+inherit cmake eapi8-dosym linux-info llvm lua-single python-r1 toolchain-funcs
 
 DESCRIPTION="Tools for BPF-based Linux IO analysis, networking, monitoring, 
and more"
 HOMEPAGE="https://iovisor.github.io/bcc/";
@@ -93,7 +93,7 @@ src_configure() {
                -DREVISION=${PV%%_*}
                -DENABLE_LLVM_SHARED=ON
                -DCMAKE_USE_LIBBPF_PACKAGE=ON
-               -DLIBBPF_INCLUDE_DIRS="$(pkg-config --cflags-only-I libbpf | 
sed 's:-I::g')"
+               -DLIBBPF_INCLUDE_DIRS="$($(tc-getPKG_CONFIG) --cflags-only-I 
libbpf | sed 's:-I::g')"
                -DKERNEL_INCLUDE_DIRS="${KERNEL_DIR}"
                -DPYTHON_CMD="${bcc_python_impls%;}"
                -Wno-dev

Reply via email to