xbps-src: set PKG_CONFIG env var to the triplet-pkg-config wrapper.

This commit is contained in:
Juan RP 2014-09-26 12:07:23 +02:00
parent 734274ebf7
commit 8ddf256957
1 changed files with 4 additions and 5 deletions

View File

@ -1,9 +1,8 @@
# This snippet setups pkg-config vars.
set -a
if [ -z "$CHROOT_READY" ]; then
PKG_CONFIG_PATH="${XBPS_MASTERDIR}/usr/lib/pkgconfig:${XBPS_MASTERDIR}/usr/share/pkgconfig"
export PKG_CONFIG_PATH="${XBPS_MASTERDIR}/usr/lib/pkgconfig:${XBPS_MASTERDIR}/usr/share/pkgconfig"
fi
if [ -n "$CROSS_BUILD" ]; then
export PKG_CONFIG="${XBPS_CROSS_TRIPLET}-pkg-config"
fi
set +a