diff options
author | Lucio Andrés Illanes Albornoz (arab, vxp) <lucio@lucioillanes.de> | 2017-11-22 11:24:32 +0000 |
---|---|---|
committer | Lucio Andrés Illanes Albornoz (arab, vxp) <lucio@lucioillanes.de> | 2017-11-22 11:24:32 +0000 |
commit | c471bd3d66e5e43938dfaba24b294cec094be8a5 (patch) | |
tree | e7103af35d8226990ee4f0a086a607659e7e5b65 | |
parent | a0e732bd50ea7b2e967a650bee1200cdb4c05caf (diff) | |
download | midipix_build-c471bd3d66e5e43938dfaba24b294cec094be8a5.tar.bz2 midipix_build-c471bd3d66e5e43938dfaba24b294cec094be8a5.tar.xz |
subr/ex_pkg_env.subr: explicitly export ${PKG_CONFIG} when building non-host packages.
-rw-r--r-- | subr/ex_pkg_env.subr | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/subr/ex_pkg_env.subr b/subr/ex_pkg_env.subr index 25b00537..cbd0b77d 100644 --- a/subr/ex_pkg_env.subr +++ b/subr/ex_pkg_env.subr @@ -29,16 +29,17 @@ ex_pkg_env() { host) export AR="ar"; export CC="gcc"; export CXX="g++"; - export RANLIB="ranlib"; - export MAKE="make LIBTOOL=${PKG_SLIBTOOL:-slibtool}"; - export LIBTOOL="${PKG_SLIBTOOL:-slibtool}"; ;; + export RANLIB="ranlib"; ;; *) export AR="${PKG_TARGET}-ar"; export CC="${PKG_TARGET}-gcc"; export CXX="${PKG_TARGET}-g++"; export RANLIB="${PKG_TARGET}-ranlib"; - export MAKE="make LIBTOOL=${PKG_SLIBTOOL:-slibtool}"; - export LIBTOOL="${PKG_SLIBTOOL:-slibtool}"; ;; + [ -x "${PREFIX}/bin/${TARGET}-pkg-config" ]\ + && export PKG_CONFIG="${PREFIX}/bin/${TARGET}-pkg-config"; + ;; esac; + export LIBTOOL="${PKG_SLIBTOOL:-slibtool}"; + export MAKE="make LIBTOOL=${PKG_SLIBTOOL:-slibtool}"; case "${PKG_SUBDIR}" in ?*) ;; *) case "${PKG_URLS_GIT}" in |