]> sigrok.org Git - sigrok-util.git/commitdiff
sigrok-cross-mingw: Pass DDK include path to libserialport.
authorUwe Hermann <redacted>
Thu, 31 Jul 2014 12:23:00 +0000 (14:23 +0200)
committerUwe Hermann <redacted>
Thu, 31 Jul 2014 12:23:00 +0000 (14:23 +0200)
Without this, files like e.g. <cfgmgr32.h> will not be found and the
compile won't work.

cross-compile/mingw/sigrok-cross-mingw

index 5ddb1b8f4c89470c26c4cb12701b40ac08902e17..1f2acd0958e4d2c9093be4cf851bb98530495d54 100755 (executable)
@@ -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 ..