mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
UPSTREAM: crossgcc: fix DESTDIR builds
We need to rewrite libtool's files (foo.la) a couple of times so it
knows where to look
(while still whining that $DESTDIR$TARGET != $TARGET. well, duh.)
BUG=none
BRANCH=none
TEST=none
Change-Id: Ib444c60924e48f5adcefeecccdb0a24250075b12
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Commit-Id: 790aab6c77
Original-Change-Id: I54cafd47c76d855222ba905b5eb4533a23bdfd34
Original-Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Reviewed-on: https://review.coreboot.org/19463
Original-Tested-by: build bot (Jenkins)
Original-Reviewed-by: Philippe Mathieu-Daud <philippe.mathieu.daude@gmail.com>
Original-Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Reviewed-on: https://chromium-review.googlesource.com/490074
Commit-Ready: Furquan Shaikh <furquan@chromium.org>
This commit is contained in:
parent
71352bf1c6
commit
a255f12aac
1 changed files with 12 additions and 1 deletions
|
@ -534,7 +534,7 @@ build_MPFR() {
|
|||
|
||||
# work around build problem of libgmp.la
|
||||
if [ "$DESTDIR" != "" ]; then
|
||||
perl -pi -e "s,$DESTDIR,," $DESTDIR$TARGETDIR/libgmp.la
|
||||
perl -pi -e "s,$DESTDIR,," $DESTDIR$TARGETDIR/lib/libgmp.la
|
||||
fi
|
||||
}
|
||||
|
||||
|
@ -543,9 +543,20 @@ build_MPC() {
|
|||
--infodir=$TARGETDIR/info --with-mpfr=$DESTDIR$TARGETDIR \
|
||||
--with-gmp=$DESTDIR$TARGETDIR CFLAGS="$HOSTCFLAGS" || \
|
||||
touch .failed
|
||||
|
||||
# work around build problem of libmpfr.la
|
||||
if [ "$DESTDIR" != "" ]; then
|
||||
perl -pi -e "s,$TARGETDIR/lib/libgmp.la,$DESTDIR\$&," $DESTDIR$TARGETDIR/lib/libmpfr.la
|
||||
fi
|
||||
|
||||
$MAKE $JOBS || touch .failed
|
||||
$MAKE install DESTDIR=$DESTDIR || touch .failed
|
||||
|
||||
# work around build problem of libmpfr.la
|
||||
if [ "$DESTDIR" != "" ]; then
|
||||
perl -pi -e "s,$DESTDIR,," $DESTDIR$TARGETDIR/lib/libmpfr.la
|
||||
fi
|
||||
|
||||
normalize_dirs
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue