summaryrefslogtreecommitdiff
path: root/util/crossgcc
diff options
context:
space:
mode:
authorTimothy Pearson <tpearson@raptorengineeringinc.com>2015-12-30 14:52:19 -0600
committerRonald G. Minnich <rminnich@gmail.com>2016-01-04 21:54:13 +0100
commit68d0e4a5a1e7028227f6fbe086c891955cb7854e (patch)
treeae03c1c87ea7971a74369c0ea95c86a30a0b6304 /util/crossgcc
parent9631016660423d0585a145400232fd68b7e3da8f (diff)
downloadcoreboot-68d0e4a5a1e7028227f6fbe086c891955cb7854e.tar.xz
util/crossgcc: Regenerate MPFR autotools files before build
The config.guess file included with MPFR is completely obsolete, leading to build failures on ppc64el due to the system architecture not being detected. Regenerate the files from the host system via automake before attempting to build MPFR. Change-Id: I00fc16003906e373d112c25978197ac907adccfd Signed-off-by: Timothy Pearson <tpearson@raptorengineeringinc.com> Reviewed-on: https://review.coreboot.org/12816 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Diffstat (limited to 'util/crossgcc')
-rwxr-xr-xutil/crossgcc/buildgcc1
1 files changed, 1 insertions, 0 deletions
diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc
index 988e3c3a5c..fad40bf9fd 100755
--- a/util/crossgcc/buildgcc
+++ b/util/crossgcc/buildgcc
@@ -367,6 +367,7 @@ build_GMP() {
build_MPFR() {
test $UNAME = "Darwin" && CFLAGS="$CFLAGS -force_cpusubtype_ALL"
+ (cd ../${MPFR_DIR}/ && CC="$CC" automake --add-missing --copy --force-missing)
CC="$CC" ../${MPFR_DIR}/configure --disable-shared --prefix=$TARGETDIR \
--infodir=$TARGETDIR/info \
--with-gmp=$DESTDIR$TARGETDIR CFLAGS="$HOSTCFLAGS" || \