CONFIGURE: Use cross-pkg-config on MXE

Works without setting PKG_CONFIG_LIBDIR.
This commit is contained in:
Orgad Shaneh 2021-07-30 16:17:42 +03:00
parent a6ded89075
commit f01a1dc6fa

3
configure vendored
View File

@ -3411,6 +3411,7 @@ if test -n "$_host"; then
*mingw32*)
_sdlconfig=$_host-sdl2-config
_libcurlconfig=$_host-curl-config
_pkgconfig=$_host-pkg-config
_windres=$_host-windres
_ar="$_host-ar cr"
_ranlib=$_host-ranlib
@ -3726,7 +3727,7 @@ _pkg_config=no
command -v $_pkgconfig >/dev/null 2>&1 && _pkg_config=yes
echo "$_pkg_config"
if test "$_pkg_config" = yes && test -n "$_host" && test -z "$PKG_CONFIG_LIBDIR"; then
if test "$_pkg_config" = yes && test -n "$_host" && test -z "$PKG_CONFIG_LIBDIR" && test "$_pkgconfig" = pkg-config; then
echo "WARNING: When cross-compiling PKG_CONFIG_LIBDIR must be set to the location of the .pc files for the target"
fi