buildgcc: Explicitely state CC everywhere
This should fix issues with the iasl Makefile on Debian and prepares ccache support for buildgcc. Change-Id: Id9e6b2044b159b19bf013ec5c47b60ca1c2f2991 Signed-off-by: Patrick Georgi <patrick@georgi-clan.de> Reviewed-on: http://review.coreboot.org/399 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
parent
f285e04125
commit
643c9e892f
|
@ -335,7 +335,7 @@ printf "Building GMP ${GMP_VERSION} ... "
|
||||||
(
|
(
|
||||||
cd build-gmp
|
cd build-gmp
|
||||||
rm -f .failed
|
rm -f .failed
|
||||||
../${GMP_DIR}/configure --disable-shared --prefix=$TARGETDIR $OPTIONS \
|
CC="$CC" ../${GMP_DIR}/configure --disable-shared --prefix=$TARGETDIR $OPTIONS \
|
||||||
|| touch .failed
|
|| touch .failed
|
||||||
$MAKE $JOBS || touch .failed
|
$MAKE $JOBS || touch .failed
|
||||||
$MAKE install DESTDIR=$DESTDIR || touch .failed
|
$MAKE install DESTDIR=$DESTDIR || touch .failed
|
||||||
|
@ -364,7 +364,7 @@ printf "Building MPFR ${MPFR_VERSION} ... "
|
||||||
test `uname` = "Darwin" && CFLAGS="$CFLAGS -force_cpusubtype_ALL"
|
test `uname` = "Darwin" && CFLAGS="$CFLAGS -force_cpusubtype_ALL"
|
||||||
cd build-mpfr
|
cd build-mpfr
|
||||||
rm -f .failed
|
rm -f .failed
|
||||||
../${MPFR_DIR}/configure --disable-shared --prefix=$TARGETDIR \
|
CC="$CC" ../${MPFR_DIR}/configure --disable-shared --prefix=$TARGETDIR \
|
||||||
--infodir=$TARGETDIR/info \
|
--infodir=$TARGETDIR/info \
|
||||||
--with-gmp=$DESTDIR$TARGETDIR CFLAGS="$HOSTCFLAGS" || \
|
--with-gmp=$DESTDIR$TARGETDIR CFLAGS="$HOSTCFLAGS" || \
|
||||||
touch .failed
|
touch .failed
|
||||||
|
@ -391,7 +391,7 @@ printf "Building MPC ${MPC_VERSION} ... "
|
||||||
#test `uname` = "Darwin" && CFLAGS="$CFLAGS -force_cpusubtype_ALL"
|
#test `uname` = "Darwin" && CFLAGS="$CFLAGS -force_cpusubtype_ALL"
|
||||||
cd build-mpc
|
cd build-mpc
|
||||||
rm -f .failed
|
rm -f .failed
|
||||||
../${MPC_DIR}/configure --disable-shared --prefix=$TARGETDIR \
|
CC="$CC" ../${MPC_DIR}/configure --disable-shared --prefix=$TARGETDIR \
|
||||||
--infodir=$TARGETDIR/info --with-mpfr=$DESTDIR$TARGETDIR \
|
--infodir=$TARGETDIR/info --with-mpfr=$DESTDIR$TARGETDIR \
|
||||||
--with-gmp=$DESTDIR$TARGETDIR CFLAGS="$HOSTCFLAGS" || \
|
--with-gmp=$DESTDIR$TARGETDIR CFLAGS="$HOSTCFLAGS" || \
|
||||||
touch .failed
|
touch .failed
|
||||||
|
@ -413,7 +413,7 @@ printf "Building libelf ${LIBELF_VERSION} ... "
|
||||||
cd build-libelf
|
cd build-libelf
|
||||||
rm -f .failed
|
rm -f .failed
|
||||||
echo "$HOSTCFLAGS"
|
echo "$HOSTCFLAGS"
|
||||||
CFLAGS="$HOSTCFLAGS" libelf_cv_elf_h_works=no \
|
CC="$CC" CFLAGS="$HOSTCFLAGS" libelf_cv_elf_h_works=no \
|
||||||
../${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
|
||||||
|
@ -439,7 +439,7 @@ printf "Building binutils ${BINUTILS_VERSION} ... "
|
||||||
# Now build binutils
|
# Now build binutils
|
||||||
cd build-binutils
|
cd build-binutils
|
||||||
rm -f .failed
|
rm -f .failed
|
||||||
../binutils-${BINUTILS_VERSION}/configure --prefix=$TARGETDIR \
|
CC="$CC" ../binutils-${BINUTILS_VERSION}/configure --prefix=$TARGETDIR \
|
||||||
--target=${TARGETARCH} --disable-werror --disable-nls \
|
--target=${TARGETARCH} --disable-werror --disable-nls \
|
||||||
$USE_GOLD CFLAGS="$HOSTCFLAGS" || touch .failed
|
$USE_GOLD CFLAGS="$HOSTCFLAGS" || touch .failed
|
||||||
$MAKE $JOBS || touch .failed
|
$MAKE $JOBS || touch .failed
|
||||||
|
@ -507,7 +507,7 @@ printf "Building Expat ${EXPAT_VERSION} ... "
|
||||||
cd build-expat
|
cd build-expat
|
||||||
export PATH=$PATH:$DESTDIR$TARGETDIR/bin
|
export PATH=$PATH:$DESTDIR$TARGETDIR/bin
|
||||||
rm -f .failed
|
rm -f .failed
|
||||||
CFLAGS="$HOSTCFLAGS" ../${EXPAT_DIR}/configure --disable-shared \
|
CC="$CC" CFLAGS="$HOSTCFLAGS" ../${EXPAT_DIR}/configure --disable-shared \
|
||||||
--prefix=$TARGETDIR --target=${TARGETARCH} || touch .failed
|
--prefix=$TARGETDIR --target=${TARGETARCH} || touch .failed
|
||||||
$MAKE || touch .failed
|
$MAKE || touch .failed
|
||||||
$MAKE install DESTDIR=$DESTDIR || touch .failed
|
$MAKE install DESTDIR=$DESTDIR || touch .failed
|
||||||
|
@ -529,7 +529,7 @@ printf "Building Python ${PYTHON_VERSION} ... "
|
||||||
cd build-python
|
cd build-python
|
||||||
export PATH=$PATH:$DESTDIR$TARGETDIR/bin
|
export PATH=$PATH:$DESTDIR$TARGETDIR/bin
|
||||||
rm -f .failed
|
rm -f .failed
|
||||||
CFLAGS="$HOSTCFLAGS" ../${PYTHON_DIR}/configure --prefix=$TARGETDIR \
|
CC="$CC" CFLAGS="$HOSTCFLAGS" ../${PYTHON_DIR}/configure --prefix=$TARGETDIR \
|
||||||
--target=${TARGETARCH} || touch .failed
|
--target=${TARGETARCH} || touch .failed
|
||||||
$MAKE $JOBS || touch .failed
|
$MAKE $JOBS || touch .failed
|
||||||
$MAKE install DESTDIR=$DESTDIR || touch .failed
|
$MAKE install DESTDIR=$DESTDIR || touch .failed
|
||||||
|
@ -554,7 +554,7 @@ printf "Building GDB ${GDB_VERSION} ... "
|
||||||
rm -f .failed
|
rm -f .failed
|
||||||
LDFLAGS="-Wl,-rpath,\$\$ORIGIN/../lib/ -L$DESTDIR$TARGETDIR/lib \
|
LDFLAGS="-Wl,-rpath,\$\$ORIGIN/../lib/ -L$DESTDIR$TARGETDIR/lib \
|
||||||
-lpthread -ldl -lutil" \
|
-lpthread -ldl -lutil" \
|
||||||
CFLAGS="$HOSTCFLAGS -I$DESTDIR$TARGETDIR/include" \
|
CC="$CC" CFLAGS="$HOSTCFLAGS -I$DESTDIR$TARGETDIR/include" \
|
||||||
../gdb-${GDB_VERSION}/configure --prefix=$TARGETDIR \
|
../gdb-${GDB_VERSION}/configure --prefix=$TARGETDIR \
|
||||||
--target=${TARGETARCH} --disable-werror --disable-nls
|
--target=${TARGETARCH} --disable-werror --disable-nls
|
||||||
$MAKE $JOBS || touch .failed
|
$MAKE $JOBS || touch .failed
|
||||||
|
@ -575,7 +575,7 @@ printf "Building IASL ${IASL_VERSION} ... "
|
||||||
export PATH=$PATH:$DESTDIR$TARGETDIR/bin
|
export PATH=$PATH:$DESTDIR$TARGETDIR/bin
|
||||||
rm -f .failed
|
rm -f .failed
|
||||||
CFLAGS="$HOSTCFLAGS"
|
CFLAGS="$HOSTCFLAGS"
|
||||||
$MAKE || touch .failed
|
$MAKE CC="$CC" || touch .failed
|
||||||
rm -f $DESTDIR$TARGETDIR/bin/iasl || touch .failed
|
rm -f $DESTDIR$TARGETDIR/bin/iasl || touch .failed
|
||||||
cp iasl $DESTDIR$TARGETDIR/bin || touch .failed
|
cp iasl $DESTDIR$TARGETDIR/bin || touch .failed
|
||||||
if [ ! -f .failed ]; then touch .success; fi
|
if [ ! -f .failed ]; then touch .success; fi
|
||||||
|
|
Loading…
Reference in New Issue