]> sigrok.org Git - sigrok-util.git/commitdiff
sigrok-cross-mingw: Use CPPFLAGS=-D__printf__=__gnu_printf__.
authorUwe Hermann <redacted>
Tue, 15 Sep 2015 20:28:20 +0000 (22:28 +0200)
committerUwe Hermann <redacted>
Tue, 15 Sep 2015 20:28:20 +0000 (22:28 +0200)
This avoids various compiler warnings.

cross-compile/mingw/sigrok-cross-mingw

index 5920595017fd2c5bacaf2a32ebee93872c52f488..a7d625f3b95dc22c179d9f028f7eb729030997ab 100755 (executable)
@@ -57,7 +57,7 @@ TOOLCHAIN_TRIPLET="$TARGET-w64-mingw32.static"
 
 P="$PREFIX/lib/pkgconfig"
 P2="$MXE/usr/$TOOLCHAIN_TRIPLET/lib/pkgconfig"
-C="--host=$TOOLCHAIN_TRIPLET --prefix=$PREFIX"
+C="--host=$TOOLCHAIN_TRIPLET --prefix=$PREFIX CPPFLAGS=-D__printf__=__gnu_printf__"
 CM="-DCMAKE_TOOLCHAIN_FILE=$MXE/usr/$TOOLCHAIN_TRIPLET/share/cmake/mxe-conf.cmake"
 L="--disable-shared --enable-static"