[coreboot-gerrit] New patch to review for coreboot: 5dfa419 buildgcc: support DESTDIR for libelf

Patrick Georgi (pgeorgi@google.com) gerrit at coreboot.org
Sat Nov 29 14:44:43 CET 2014


Patrick Georgi (pgeorgi at google.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/7613

-gerrit

commit 5dfa4193a1bccb60e6e37715075b3312d90f7486
Author: Patrick Georgi <pgeorgi at google.com>
Date:   Sat Nov 29 14:43:35 2014 +0100

    buildgcc: support DESTDIR for libelf
    
    The libelf build system doesn't support the
    DESTDIR variable. Work around by mangling prefix
    when installing.
    
    Change-Id: I3a56eb2bf919bcb9b586b945dce26a02dbaff931
    Signed-off-by: Patrick Georgi <pgeorgi at google.com>
---
 util/crossgcc/buildgcc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc
index 42ae04d..7f2643f 100755
--- a/util/crossgcc/buildgcc
+++ b/util/crossgcc/buildgcc
@@ -437,7 +437,7 @@ printf "Building libelf ${LIBELF_VERSION} ... "
 	../${LIBELF_DIR}/configure --disable-shared --prefix=$TARGETDIR \
 		--infodir=$TARGETDIR/info CFLAGS="$HOSTCFLAGS" || touch .failed
 	$MAKE $JOBS || touch .failed
-	$MAKE install DESTDIR=$DESTDIR || touch .failed
+	$MAKE install prefix=$DESTDIR/$TARGETDIR || touch .failed
 
 	normalize_dirs
 



More information about the coreboot-gerrit mailing list