We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2bc9818 commit c073125Copy full SHA for c073125
avrdude-6.3.build.bash
@@ -37,15 +37,16 @@ fi
37
38
COMMON_FLAGS=""
39
40
-#if [[ $CROSS_COMPILE == "mingw" ]] ; then
41
-#CFLAGS="$CFLAGS -lhid -lsetupapi"
42
-#fi
+if [[ $CROSS_COMPILE == "mingw" ]] ; then
+CFLAGS="-DHAVE_LIBHIDAPI $CFLAGS -lhidapi -lsetupapi"
+LIBS="-lhidapi -lsetupapi"
43
+fi
44
45
CONFARGS="--prefix=$PREFIX --enable-linuxgpio"
46
if [[ $CROSS_COMPILE != "" ]] ; then
47
CONFARGS="$CONFARGS --host=$CROSS_COMPILE_HOST"
48
fi
-CFLAGS="-w -O2 $CFLAGS" CXXFLAGS="-w -O2 $CXXFLAGS" LDFLAGS="-s $LDFLAGS" ./configure $CONFARGS
49
+./configure $CONFARGS CFLAGS="-w -O2 $CFLAGS" CXXFLAGS="-w -O2 $CXXFLAGS" LDFLAGS="-s $LDFLAGS" LIBS="$LIBS"
50
51
make
52
make install
0 commit comments