summaryrefslogtreecommitdiffhomepage
path: root/subr
diff options
context:
space:
mode:
Diffstat (limited to 'subr')
-rw-r--r--subr/ex_pkg_env.subr7
1 files changed, 5 insertions, 2 deletions
diff --git a/subr/ex_pkg_env.subr b/subr/ex_pkg_env.subr
index d3921e5f..853d785c 100644
--- a/subr/ex_pkg_env.subr
+++ b/subr/ex_pkg_env.subr
@@ -34,8 +34,11 @@ ex_pkg_env() {
export CC="${PKG_TARGET}-gcc";
export CXX="${PKG_TARGET}-g++";
export RANLIB="${PKG_TARGET}-ranlib";
- [ -x "${PREFIX}/bin/${TARGET}-pkg-config" ]\
- && export PKG_CONFIG="${PREFIX}/bin/${TARGET}-pkg-config";
+ if [ -x "${PREFIX}/bin/${TARGET}-pkg-config" ]; then
+ export PKGCONFIG="${PREFIX}/bin/${TARGET}-pkg-config";
+ export PKG_CONFIG="${PREFIX}/bin/${TARGET}-pkg-config";
+ export PKG_CONFIG_LIBDIR="${PKG_PREFIX}/lib/pkgconfig";
+ fi;
;;
esac;
export LIBTOOL="${PKG_SLIBTOOL:-slibtool}";