aboutsummaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorStefan Reinauer <stefan.reinauer@coreboot.org>2015-06-09 11:52:28 -0700
committerStefan Reinauer <stefan.reinauer@coreboot.org>2015-06-09 23:31:14 +0200
commitd0f837239d06b096839dd9133a278c59b7faa3bd (patch)
treef43a3916914b57abf2eabb49e236c8214d531d34 /util
parentdbc0087f9e25008b2c39fb484ec9c3e3bbf07de8 (diff)
buildgcc: Don't run autoconf
gcc and binutils fixed their upstream tar balls, and running autoconf created more problems than it solved Change-Id: I0003dd597f521701405ff35923214435136b262d Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Reviewed-on: http://review.coreboot.org/10486 Reviewed-by: Patrick Georgi <pgeorgi@google.com> Tested-by: build bot (Jenkins)
Diffstat (limited to 'util')
-rwxr-xr-xutil/crossgcc/buildgcc24
1 files changed, 2 insertions, 22 deletions
diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc
index a30ef24e4b..740a0358b9 100755
--- a/util/crossgcc/buildgcc
+++ b/util/crossgcc/buildgcc
@@ -361,13 +361,7 @@ build_LIBELF() {
}
build_BINUTILS() {
- # What a pain: binutils don't come with configure
- # script anymore. Create it:
- cd ../binutils-${BINUTILS_VERSION}/
- autoconf
- cd -
# Now build binutils
- rm -f .failed
CC="$CC" ../binutils-${BINUTILS_VERSION}/configure --prefix=$TARGETDIR \
--target=${TARGETARCH} --disable-werror --disable-nls \
$USE_GOLD CFLAGS="$HOSTCFLAGS" || touch .failed
@@ -377,22 +371,8 @@ build_BINUTILS() {
build_GCC() {
- # Even worse than binutils: GCC does not come with configure
- # script anymore, but also enforces an obsolete autoconf version
- # to create it. This is a poster child of how autotools help make
- # software portable.
- cd ../gcc-${GCC_VERSION}
- sed '/dnl Ensure exactly this Autoconf version is used/d' \
- config/override.m4 > config/override.m4.new
- autoconf_version=$(autoconf -V | grep "autoconf" | tr ' ' '\n' | tail -1)
- sed "s/${GCC_AUTOCONF_VERSION}/${autoconf_version}/g" \
- config/override.m4.new > config/override.m4
- autoconf
- cd -
-
- # Now, finally, we can build gcc:
- # GCC does not honour HOSTCFLAGS at all. CFLAGS are used for
- # both target and host object files. This is pretty misdesigned.
+ # GCC does not honor HOSTCFLAGS at all. CFLAGS are used for
+ # both target and host object files.
# There's a work-around called CFLAGS_FOR_BUILD and CFLAGS_FOR_TARGET
# but it does not seem to work properly. At least the host library
# libiberty is not compiled with CFLAGS_FOR_BUILD.