3 # Build a GCC compiler, using environment variables defined by several
4 # reghunt scripts and config files.
6 # This doesn't work for sources earlier than about 2003-02-25.
8 # Copyright (C) 2007 Free Software Foundation.
10 # This file is free software; you can redistribute it and/or modify
11 # it under the terms of the GNU General Public License as published by
12 # the Free Software Foundation; either version 3 of the License, or
13 # (at your option) any later version.
15 # This program is distributed in the hope that it will be useful,
16 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 # GNU General Public License for more details.
20 # For a copy of the GNU General Public License, write the the
21 # Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
22 # Boston, MA 02111-1301, USA.
25 LOGDIR
=${REG_BUILDDIR}/logs/${BUGID}/${ID}
37 msg
"building $REG_COMPILER for id $ID"
44 ${REG_GCCSRC}/configure \
45 --prefix=$REG_PREFIX \
46 --enable-languages=$REG_LANGS \
48 > configure.log
2>&1 || abort
" configure failed"
51 make all-build-libiberty
> ${LOGDIR}/make.all-build-libiberty.log
2>&1 || true
52 make all-libcpp
> ${LOGDIR}/make.all-libcpp.log
2>&1 || true
53 make all-libdecnumber
> ${LOGDIR}/make.all-libdecnumber.log
2>&1 || true
54 make all-intl
> ${LOGDIR}/make.all-intl.log
2>&1 || true
55 make all-libbanshee
> ${LOGDIR}/make.all-libbanshee.log
2>&1 || true
56 make configure-gcc
> ${LOGDIR}/make.configure-gcc.log
2>&1 || true
59 if [ ! -f libiberty
/libiberty.a
]; then
60 if [ -d libiberty
]; then
61 # another hack for 3.2!
63 make > ${LOGDIR}/make.libiberty.log
2>&1 || true
68 ln -s ..
/build-
${REG_BLD}/libiberty
/libiberty.a .
74 # REG_COMPILER is cc1, cc1plus, or f951
75 #msg "make $REG_COMPILER"
76 make $REG_MAKE_J $REG_COMPILER > ${LOGDIR}/make.
${REG_COMPILER}.log
2>&1 \
77 || abort
" make failed"