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>
This commit is contained in:
Timothy Pearson 2015-12-30 14:52:19 -06:00 committed by Ronald G. Minnich
parent 9631016660
commit 68d0e4a5a1
1 changed files with 1 additions and 0 deletions

View File

@ -367,6 +367,7 @@ build_GMP() {
build_MPFR() { build_MPFR() {
test $UNAME = "Darwin" && CFLAGS="$CFLAGS -force_cpusubtype_ALL" 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 \ CC="$CC" ../${MPFR_DIR}/configure --disable-shared --prefix=$TARGETDIR \
--infodir=$TARGETDIR/info \ --infodir=$TARGETDIR/info \
--with-gmp=$DESTDIR$TARGETDIR CFLAGS="$HOSTCFLAGS" || \ --with-gmp=$DESTDIR$TARGETDIR CFLAGS="$HOSTCFLAGS" || \