Waf has a helper that looks for PKGCONFIG. This fixes cross-compiling.

Signed-off-by: James Le Cuirot <ch...@gentoo.org>
---
 eclass/waf-utils.eclass | 1 +
 1 file changed, 1 insertion(+)

diff --git a/eclass/waf-utils.eclass b/eclass/waf-utils.eclass
index 8387829648a3..6cdfe5f747e8 100644
--- a/eclass/waf-utils.eclass
+++ b/eclass/waf-utils.eclass
@@ -88,6 +88,7 @@ waf-utils_src_configure() {
        local CMD=(
                CCFLAGS="${CFLAGS}"
                LINKFLAGS="${CFLAGS} ${LDFLAGS}"
+               PKGCONFIG="$(tc-getPKG_CONFIG)"
                "${WAF_BINARY}"
                "--prefix=${EPREFIX}/usr"
                "${libdir[@]}"
-- 
2.19.2


Reply via email to