waf-utils.eclass: Respect PKG_CONFIG
authorJames Le Cuirot <chewi@gentoo.org>
Wed, 9 Jan 2019 21:52:05 +0000 (21:52 +0000)
committerJames Le Cuirot <chewi@gentoo.org>
Sun, 13 Jan 2019 22:47:16 +0000 (22:47 +0000)
Waf has a helper that looks for PKGCONFIG. This fixes cross-compiling.

Signed-off-by: James Le Cuirot <chewi@gentoo.org>
eclass/waf-utils.eclass

index dc21baafc9d20037aa8b18dee3c82cadb6633253..2cb26bc8dfd9c9ae03eead941d44aa4a370c3570 100644 (file)
@@ -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[@]}"