eclass/cargo.eclass: tc-export PKG_CONFIG

this way cargo will call properly prefixed pkg-config binary

Closes: https://bugs.gentoo.org/756913
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
This commit is contained in:
Georgy Yakovlev
2020-11-27 22:34:22 -08:00
parent 22efecc446
commit 010e27edb8

View File

@@ -347,7 +347,7 @@ cargo_src_compile() {
[[ ${_CARGO_GEN_CONFIG_HAS_RUN} ]] || \
die "FATAL: please call cargo_gen_config before using ${FUNCNAME}"
tc-export AR CC CXX
tc-export AR CC CXX PKG_CONFIG
set -- cargo build $(usex debug "" --release) ${ECARGO_ARGS[@]} "$@"
einfo "${@}"