From 32a5a5f467e6a69647912cecc4fee9e8fc7cfea3 Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Sat, 29 Nov 2014 14:43:35 +0100 Subject: [PATCH] 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 Reviewed-on: http://review.coreboot.org/7613 Tested-by: build bot (Jenkins) Reviewed-by: Edward O'Callaghan Reviewed-by: Paul Menzel --- util/crossgcc/buildgcc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc index 42ae04dd41..7f2643fa60 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