mirror of
https://gitlab.freedesktop.org/pkg-config/pkg-config.git
synced 2026-05-05 06:27:59 +02:00
Check $host rather than $build when deciding native Win32
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.
This commit is contained in:
parent
4ccdb947dd
commit
df1ac943d4
1 changed files with 1 additions and 1 deletions
|
|
@ -138,7 +138,7 @@ fi
|
|||
AC_SUBST(WARN_CFLAGS)
|
||||
|
||||
AC_MSG_CHECKING([for Win32])
|
||||
case "$build" in
|
||||
case "$host" in
|
||||
*-*-mingw*)
|
||||
native_win32=yes
|
||||
;;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue