This doesn't seem to be needed with MinGW-w64 (which we now require).
C="--host=$TOOLCHAIN_TRIPLET --prefix=$PREFIX"
CM="-DCMAKE_TOOLCHAIN_FILE=$MXE/usr/$TOOLCHAIN_TRIPLET/share/cmake/mxe-conf.cmake"
L="--disable-shared --enable-static"
-DDK="$MXE/usr/$TOOLCHAIN_TRIPLET/include/ddk"
if [ $TARGET == "i686" ]; then
export PKG_CONFIG_PATH_i686_w64_mingw32_static="$P:$P2"
$GIT_CLONE git://sigrok.org/libserialport
cd libserialport
./autogen.sh
-CFLAGS="-I$DDK" ./configure $C $L
+./configure $C $L
make $PARALLEL V=1
make install
cd ..