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
1 Waf has a helper that looks for PKGCONFIG. This fixes cross-compiling.
2
3 Signed-off-by: James Le Cuirot <chewi@g.o>
4 ---
5 eclass/waf-utils.eclass | 1 +
6 1 file changed, 1 insertion(+)
7
8 diff --git a/eclass/waf-utils.eclass b/eclass/waf-utils.eclass
9 index 8387829648a3..6cdfe5f747e8 100644
10 --- a/eclass/waf-utils.eclass
11 +++ b/eclass/waf-utils.eclass
12 @@ -88,6 +88,7 @@ waf-utils_src_configure() {
13 local CMD=(
14 CCFLAGS="${CFLAGS}"
15 LINKFLAGS="${CFLAGS} ${LDFLAGS}"
16 + PKGCONFIG="$(tc-getPKG_CONFIG)"
17 "${WAF_BINARY}"
18 "--prefix=${EPREFIX}/usr"
19 "${libdir[@]}"
20 --
21 2.19.2