File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -81,6 +81,10 @@ cd objdir
81
81
PREFIX=` pwd`
82
82
cd -
83
83
84
+ if [[ $CROSS_COMPILE == " mingw" ]] ; then
85
+ EXTRA_CONFARGS=" --host=i686-w64-mingw32"
86
+ fi
87
+
84
88
mkdir -p gcc-build
85
89
cd gcc-build
86
90
@@ -92,12 +96,12 @@ CONFARGS=" \
92
96
--disable-nls \
93
97
--disable-checking \
94
98
--disable-libssp \
95
- --disable-libada \
99
+ --disable-libada \
96
100
--disable-shared \
97
101
--enable-lto \
98
- --with-avrlibc=yes \
102
+ --with-avrlibc=yes \
99
103
--with-dwarf2 \
100
- --disable-doc \
104
+ --disable-doc \
101
105
--target=avr"
102
106
103
107
if [ ` uname -s` == " Darwin" ]
106
110
LDFLAGS=" $LDFLAGS -L/usr/lib"
107
111
fi
108
112
109
- CFLAGS=" -w -O2 -g0 $CFLAGS " CXXFLAGS=" -w -O2 -g0 $CXXFLAGS " LDFLAGS=" -s $LDFLAGS " ../gcc/configure $CONFARGS
113
+ CFLAGS=" -w -O2 -g0 $CFLAGS " CXXFLAGS=" -w -O2 -g0 $CXXFLAGS " LDFLAGS=" -s $LDFLAGS " ../gcc/configure $CONFARGS $EXTRA_CONFARGS
110
114
111
115
if [ -z " $MAKE_JOBS " ]; then
112
116
MAKE_JOBS=" 2"
You can’t perform that action at this time.
0 commit comments