Gentoo Archives: gentoo-dev

From: James Le Cuirot <chewi@g.o>
To: gentoo-dev <gentoo-dev@l.g.o>
Cc: James Le Cuirot <chewi@g.o>
Subject: [gentoo-dev] [PATCH 2/2] waf-utils.eclass: Respect PKG_CONFIG
Date: Wed, 09 Jan 2019 22:08:35
Message-Id: 20190109220817.12006-2-chewi@gentoo.org
In Reply to: [gentoo-dev] [PATCH 1/2] waf-utils.eclass: Simplify output of configure command and arguments by James Le Cuirot
Waf has a helper that looks for PKGCONFIG. This fixes cross-compiling.

Signed-off-by: James Le Cuirot <chewi@g.o>
---
 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