summaryrefslogtreecommitdiff
path: root/util/crossgcc/buildgcc
diff options
context:
space:
mode:
authorPatrick Georgi <patrick@georgi-clan.de>2015-06-04 00:09:12 +0200
committerStefan Reinauer <stefan.reinauer@coreboot.org>2015-06-04 17:15:02 +0200
commit31bf37eb32170bf69be845a1218438c12fe5bf75 (patch)
tree90083ca892b3b7c10bd01f1b45f6cf9bdb14b8b0 /util/crossgcc/buildgcc
parent580e7223bb617cfa14bf24e48bb39bac47c4e8e0 (diff)
downloadcoreboot-31bf37eb32170bf69be845a1218438c12fe5bf75.tar.xz
crossgcc: Improve compatibility of the toolchain across host systems
crossgcc builds gmp, whose build system normally optimises for the hardware it's built on. That may give a minor performance boost but has the downside that the compiler becomes non-portable and may break on other systems due to illegal instructions. Setting CFLAGS to some reasonable value prevents gmp's configure script from choosing CPU specific -mtune flags (which may enable optimizations that only run on CPUs with the same feature set). Enabling "fat" builds make the build system add all optimized assembler routines and makes the selection of the right one a runtime decision instead of deciding at compile time. Change-Id: I72d20627270baa082cd02ebb4c9a09cd23f30f8c Signed-off-by: Patrick Georgi <patrick@georgi-clan.de> Reviewed-on: http://review.coreboot.org/10412 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'util/crossgcc/buildgcc')
-rwxr-xr-xutil/crossgcc/buildgcc6
1 files changed, 3 insertions, 3 deletions
diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc
index 15bcd9209d..a1b596e159 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