[coreboot-gerrit] New patch to review for coreboot: [NEEDS-TESTING] buildgcc: fix gcc's Makefile's fragile sed scripts

Nico Huber (nico.h@gmx.de) gerrit at coreboot.org
Thu Jan 21 00:48:55 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/13068

-gerrit

commit 728302593521cdc4ef5cba3ae95ba29377943c9a
Author: Nico Huber <nico.h at gmx.de>
Date:   Thu Jan 21 00:42:59 2016 +0100

    [NEEDS-TESTING] buildgcc: fix gcc's Makefile's fragile sed scripts
    
    On some NetBSD 7.0, gcc's configure generates a BUILD_SUBDIR with a
    trailing '.'. This is later garbled by fragile sed scripts in the
    Makefile. Let's try how far we get with sane sed scripts.
    
    Change-Id: I4178d30224a33cec1520c12f1f0033ddf29ea897
    Signed-off-by: Nico Huber <nico.h at gmx.de>
---
 util/crossgcc/buildgcc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc
index 004df8b..7f198b2 100755
--- a/util/crossgcc/buildgcc
+++ b/util/crossgcc/buildgcc
@@ -423,6 +423,8 @@ build_BINUTILS() {
 
 
 build_GCC() {
+	sed -i -e"s|-e 's,\\\\./,,g'|-e 's,^\\\\./,,' -e 's,/\\\\./,/,g'|" \
+		../gcc-${GCC_VERSION}/Makefile.in
 	# GCC does not honor HOSTCFLAGS at all. CFLAGS are used for
 	# both target and host object files.
 	# There's a work-around called CFLAGS_FOR_BUILD and CFLAGS_FOR_TARGET



More information about the coreboot-gerrit mailing list