We're switching from MinGW (i686-pc-mingw32.static in MXE)...
http://mingw.org/
...to MinGW-w64 (i686-w64-mingw32.static in MXE):
http://mingw-w64.sourceforge.net/
The latter is a fork which nowadays seems to be more active and also to
have a more complete set of win32 API headers and libs.
History:
http://sourceforge.net/p/mingw-w64/wiki2/History/
Among other things this is required for certain API calls now used in
recent libserialport versions (probably will be required for various
other sigrok-related projects later as well).
# We need to find tools in the toolchain.
export PATH=$MXE/usr/bin:$PATH
-TOOLCHAIN_TRIPLET="i686-pc-mingw32.static"
+TOOLCHAIN_TRIPLET="i686-w64-mingw32.static"
P="$PREFIX/lib/pkgconfig"
P2="$MXE/usr/$TOOLCHAIN_TRIPLET/lib/pkgconfig"
L="--disable-shared --enable-static"
DDK="$MXE/usr/$TOOLCHAIN_TRIPLET/include/ddk"
-export PKG_CONFIG_PATH_i686_pc_mingw32_static="$P:$P2"
+export PKG_CONFIG_PATH_i686_w64_mingw32_static="$P:$P2"
# Remove build directory contents (if any) and create a new build dir.
rm -rf $BUILDDIR