From: Uwe Hermann Date: Thu, 31 Jul 2014 12:23:00 +0000 (+0200) Subject: sigrok-cross-mingw: Pass DDK include path to libserialport. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=09ee3a4241e2e71d1901576d59d195ec8a64f90f;p=sigrok-util.git sigrok-cross-mingw: Pass DDK include path to libserialport. Without this, files like e.g. will not be found and the compile won't work. --- diff --git a/cross-compile/mingw/sigrok-cross-mingw b/cross-compile/mingw/sigrok-cross-mingw index 5ddb1b8..1f2acd0 100755 --- a/cross-compile/mingw/sigrok-cross-mingw +++ b/cross-compile/mingw/sigrok-cross-mingw @@ -55,6 +55,7 @@ P2="$MXE/usr/i686-pc-mingw32.static/lib/pkgconfig" C="--host=i686-pc-mingw32.static --prefix=$PREFIX" CM="-DCMAKE_TOOLCHAIN_FILE=$MXE/usr/i686-pc-mingw32.static/share/cmake/mxe-conf.cmake" L="--disable-shared --enable-static" +DDK="$MXE/usr/i686-pc-mingw32.static/include/ddk" # Remove build directory contents (if any) and create a new build dir. rm -rf $BUILDDIR @@ -113,7 +114,7 @@ cp -f zadig.exe zadig_xp.exe $PREFIX $GIT_CLONE git://sigrok.org/libserialport cd libserialport ./autogen.sh -PKG_CONFIG_PATH_i686_pc_mingw32_static=$P ./configure $C $L +PKG_CONFIG_PATH_i686_pc_mingw32_static=$P CFLAGS="-I$DDK" ./configure $C $L make $PARALLEL V=1 make install cd ..