[PATCH 1/8] Check $host rather than $build when deciding native Win32

Dan Nicholson dbn.lists at gmail.com
Sat Apr 6 09:17:37 PDT 2013


The host triplet describes the machine the program will run on while the
build triplet describes the machine the program is being built on. The
determination of native Win32 should be based on where pkg-config is
going to be running. This makes pkg-config cross-compiled for windows
work as if it was built on windows.
---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 2b33371..4ed7e4d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -138,7 +138,7 @@ fi
 AC_SUBST(WARN_CFLAGS)
 
 AC_MSG_CHECKING([for Win32])
-case "$build" in
+case "$host" in
   *-*-mingw*)
     native_win32=yes
   ;;
-- 
1.8.1.4



More information about the pkg-config mailing list