Skip to content

Commit 3a3682c

Browse files
committed
TEST: re-enable canadian cross for mingw
1 parent 69fe575 commit 3a3682c

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

gcc.build.bash

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ cd objdir
8181
PREFIX=`pwd`
8282
cd -
8383

84+
if [[ $CROSS_COMPILE == "mingw" ]] ; then
85+
EXTRA_CONFARGS="--host=i686-w64-mingw32"
86+
fi
87+
8488
mkdir -p gcc-build
8589
cd gcc-build
8690

@@ -92,12 +96,12 @@ CONFARGS=" \
9296
--disable-nls \
9397
--disable-checking \
9498
--disable-libssp \
95-
--disable-libada \
99+
--disable-libada \
96100
--disable-shared \
97101
--enable-lto \
98-
--with-avrlibc=yes \
102+
--with-avrlibc=yes \
99103
--with-dwarf2 \
100-
--disable-doc \
104+
--disable-doc \
101105
--target=avr"
102106

103107
if [ `uname -s` == "Darwin" ]
@@ -106,7 +110,7 @@ then
106110
LDFLAGS="$LDFLAGS -L/usr/lib"
107111
fi
108112

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
110114

111115
if [ -z "$MAKE_JOBS" ]; then
112116
MAKE_JOBS="2"

0 commit comments

Comments
 (0)