Patrick Georgi (pgeorgi@google.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/10412
-gerrit
commit b158222decea62afcaf6b58db1e153d4cddf0e0c Author: Patrick Georgi patrick@georgi-clan.de Date: Thu Jun 4 00:09:12 2015 +0200
crossgcc: Build gmp compatibly
Normally gmp only links in the assembler routines for the system it's built on. Worse, its configure script determines the CPU and select -mtune flags for the compiler.
That's neat when you're building for the current machine, but a real problem when building portable binaries.
Change-Id: I72d20627270baa082cd02ebb4c9a09cd23f30f8c Signed-off-by: Patrick Georgi patrick@georgi-clan.de --- util/crossgcc/buildgcc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc index 15bcd92..a1b596e 100755 --- a/util/crossgcc/buildgcc +++ b/util/crossgcc/buildgcc @@ -22,8 +22,8 @@
cd `dirname $0`
-CROSSGCC_DATE="March 8th, 2015" -CROSSGCC_VERSION="1.27" +CROSSGCC_DATE="June 3th, 2015" +CROSSGCC_VERSION="1.28"
# default settings TARGETDIR=`pwd`/xgcc @@ -418,7 +418,7 @@ printf "Building GMP ${GMP_VERSION} ... " ( cd ${BUILDDIRPREFIX}-gmp rm -f .failed - CC="$CC" ../${GMP_DIR}/configure --disable-shared --prefix=$TARGETDIR $OPTIONS \ + CC="$CC" CFLAGS="-Os" ../${GMP_DIR}/configure --disable-shared --enable-fat --prefix=$TARGETDIR $OPTIONS \ || touch .failed $MAKE $JOBS || touch .failed $MAKE install DESTDIR=$DESTDIR || touch .failed