summaryrefslogtreecommitdiff
path: root/util/crossgcc/buildgcc
diff options
context:
space:
mode:
Diffstat (limited to 'util/crossgcc/buildgcc')
-rwxr-xr-xutil/crossgcc/buildgcc13
1 files changed, 8 insertions, 5 deletions
diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc
index c27d62cd7f..0ab0a530e4 100755
--- a/util/crossgcc/buildgcc
+++ b/util/crossgcc/buildgcc
@@ -22,8 +22,8 @@
cd $(dirname $0)
-CROSSGCC_DATE="June 9th, 2015"
-CROSSGCC_VERSION="1.30"
+CROSSGCC_DATE="June 17th, 2015"
+CROSSGCC_VERSION="1.31"
# default settings
PACKAGE=GCC
@@ -380,10 +380,13 @@ build_LIBELF() {
}
build_BINUTILS() {
- # Now build binutils
+ if [ $TARGETARCH == "x86_64-elf" ]; then
+ ADDITIONALTARGET=",i386-elf"
+ fi
CC="$CC" ../binutils-${BINUTILS_VERSION}/configure --prefix=$TARGETDIR \
- --target=${TARGETARCH} --disable-werror --disable-nls \
- --enable-lto --enable-gold --enable-plugins CFLAGS="$HOSTCFLAGS" || touch .failed
+ --target=${TARGETARCH} --enable-targets=${TARGETARCH}${ADDITIONALTARGET} \
+ --disable-werror --disable-nls --enable-lto --enable-gold \
+ --enable-plugins --enable-multilibs CFLAGS="$HOSTCFLAGS" || touch .failed
$MAKE $JOBS || touch .failed
$MAKE install DESTDIR=$DESTDIR || touch .failed
}