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@google.com> Reviewed-on: http://review.coreboot.org/7613 Tested-by: build bot (Jenkins) Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
This commit is contained in:
parent
4f75af9fe2
commit
32a5a5f467
|
@ -437,7 +437,7 @@ printf "Building libelf ${LIBELF_VERSION} ... "
|
||||||
../${LIBELF_DIR}/configure --disable-shared --prefix=$TARGETDIR \
|
../${LIBELF_DIR}/configure --disable-shared --prefix=$TARGETDIR \
|
||||||
--infodir=$TARGETDIR/info CFLAGS="$HOSTCFLAGS" || touch .failed
|
--infodir=$TARGETDIR/info CFLAGS="$HOSTCFLAGS" || touch .failed
|
||||||
$MAKE $JOBS || touch .failed
|
$MAKE $JOBS || touch .failed
|
||||||
$MAKE install DESTDIR=$DESTDIR || touch .failed
|
$MAKE install prefix=$DESTDIR/$TARGETDIR || touch .failed
|
||||||
|
|
||||||
normalize_dirs
|
normalize_dirs
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue