summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorgy Yakovlev <gyakovlev@gentoo.org>2020-11-27 22:34:22 -0800
committerGeorgy Yakovlev <gyakovlev@gentoo.org>2020-11-27 22:35:49 -0800
commit010e27edb8f99fa7d61a51acbaffafac6b7f8a33 (patch)
tree3539ccb7396b080c8d9618a0aa0636d750504d33 /eclass/cargo.eclass
parentnet-libs/liblockfile: fix Darwin makefile (diff)
downloadgentoo-010e27edb8f99fa7d61a51acbaffafac6b7f8a33.tar.gz
gentoo-010e27edb8f99fa7d61a51acbaffafac6b7f8a33.tar.bz2
gentoo-010e27edb8f99fa7d61a51acbaffafac6b7f8a33.zip
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>
Diffstat (limited to 'eclass/cargo.eclass')
-rw-r--r--eclass/cargo.eclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/eclass/cargo.eclass b/eclass/cargo.eclass
index 1042f31e7e65..7f7a681f6f52 100644
--- a/eclass/cargo.eclass
+++ b/eclass/cargo.eclass
@@ -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 "${@}"