[coreboot-gerrit] Patch set updated for coreboot: buildgcc: Test -fno-pie for broken Debian toolchain

Nico Huber (nico.h@gmx.de) gerrit at coreboot.org
Wed Dec 7 00:08:16 CET 2016


Nico Huber (nico.h at gmx.de) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/17743

-gerrit

commit 63932e88a79871a5b25832b4a66a830e0f17f790
Author: Nico Huber <nico.h at gmx.de>
Date:   Tue Dec 6 23:57:33 2016 +0100

    buildgcc: Test -fno-pie for broken Debian toolchain
    
    Current Debian-testing toolchain reportedly has `-fpie` enabled by
    default which breaks a lot things.
    
    Change-Id: I5f8645bb65576d2e2602096fdb110ccd60341220
    Signed-off-by: Nico Huber <nico.h at gmx.de>
---
 util/crossgcc/buildgcc | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc
index 97c38b8..1131d2d 100755
--- a/util/crossgcc/buildgcc
+++ b/util/crossgcc/buildgcc
@@ -515,7 +515,8 @@ set_hostcflags_from_gmp() {
 }
 
 build_GMP() {
-	CC="$CC" ../${GMP_DIR}/configure --disable-shared --enable-fat \
+	CC="$CC" CFLAGS="$HOSTCFLAGS" \
+	../${GMP_DIR}/configure --disable-shared --enable-fat \
 		--prefix=$TARGETDIR $OPTIONS \
 		|| touch .failed
 	$MAKE $JOBS || touch .failed
@@ -946,7 +947,7 @@ if [ -z "${LANGUAGES}" ]; then
 fi
 fi # GCC
 
-export HOSTCFLAGS="-Os"
+export HOSTCFLAGS="-Os -fno-pie"
 if have_hostcflags_from_gmp; then
 	set_hostcflags_from_gmp
 fi



More information about the coreboot-gerrit mailing list