Martin Roth (martinroth@google.com) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/17743
-gerrit
commit 070699339fb4c9c87ddac706f0d8f1481ea04479 Author: Nico Huber nico.h@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@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