diff options
author | Patrick Georgi <patrick@georgi-clan.de> | 2011-11-04 21:30:49 +0100 |
---|---|---|
committer | Stefan Reinauer <stefan.reinauer@coreboot.org> | 2011-11-06 18:44:53 +0100 |
commit | 643c9e892fab5f73dde566b9ffb73f2f0463d9a7 (patch) | |
tree | d214a90e4b10e442dd48fb9196bd6fa81abb8bca | |
parent | f285e0412509dc3aa192931b6a0832dbdbc74d0a (diff) | |
download | coreboot-staging-643c9e892fab5f73dde566b9ffb73f2f0463d9a7.zip coreboot-staging-643c9e892fab5f73dde566b9ffb73f2f0463d9a7.tar.gz |
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>
-rwxr-xr-x | util/crossgcc/buildgcc | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc index 8918191..748b944 100755 --- a/util/crossgcc/buildgcc +++ b/util/crossgcc/buildgcc @@ -335,7 +335,7 @@ printf "Building GMP ${GMP_VERSION} ... " ( cd build-gmp rm -f .failed - ../${GMP_DIR}/configure --disable-shared --prefix=$TARGETDIR $OPTIONS \ + CC="$CC" ../${GMP_DIR}/configure --disable-shared --prefix=$TARGETDIR $OPTIONS \ || touch .failed $MAKE $JOBS || 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" cd build-mpfr rm -f .failed - ../${MPFR_DIR}/configure --disable-shared --prefix=$TARGETDIR \ + CC="$CC" ../${MPFR_DIR}/configure --disable-shared --prefix=$TARGETDIR \ --infodir=$TARGETDIR/info \ --with-gmp=$DESTDIR$TARGETDIR CFLAGS="$HOSTCFLAGS" || \ touch .failed @@ -391,7 +391,7 @@ printf "Building MPC ${MPC_VERSION} ... " #test `uname` = "Darwin" && CFLAGS="$CFLAGS -force_cpusubtype_ALL" cd build-mpc 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 \ --with-gmp=$DESTDIR$TARGETDIR CFLAGS="$HOSTCFLAGS" || \ touch .failed @@ -413,7 +413,7 @@ printf "Building libelf ${LIBELF_VERSION} ... " cd build-libelf rm -f .failed 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 \ --infodir=$TARGETDIR/info CFLAGS="$HOSTCFLAGS" || touch .failed $MAKE $JOBS || touch .failed @@ -439,7 +439,7 @@ printf "Building binutils ${BINUTILS_VERSION} ... " # Now build binutils cd build-binutils rm -f .failed - ../binutils-${BINUTILS_VERSION}/configure --prefix=$TARGETDIR \ + CC="$CC" ../binutils-${BINUTILS_VERSION}/configure --prefix=$TARGETDIR \ --target=${TARGETARCH} --disable-werror --disable-nls \ $USE_GOLD CFLAGS="$HOSTCFLAGS" || touch .failed $MAKE $JOBS || touch .failed @@ -507,7 +507,7 @@ printf "Building Expat ${EXPAT_VERSION} ... " cd build-expat export PATH=$PATH:$DESTDIR$TARGETDIR/bin 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 $MAKE || touch .failed $MAKE install DESTDIR=$DESTDIR || touch .failed @@ -529,7 +529,7 @@ printf "Building Python ${PYTHON_VERSION} ... " cd build-python export PATH=$PATH:$DESTDIR$TARGETDIR/bin rm -f .failed - CFLAGS="$HOSTCFLAGS" ../${PYTHON_DIR}/configure --prefix=$TARGETDIR \ + CC="$CC" CFLAGS="$HOSTCFLAGS" ../${PYTHON_DIR}/configure --prefix=$TARGETDIR \ --target=${TARGETARCH} || touch .failed $MAKE $JOBS || touch .failed $MAKE install DESTDIR=$DESTDIR || touch .failed @@ -554,7 +554,7 @@ printf "Building GDB ${GDB_VERSION} ... " rm -f .failed LDFLAGS="-Wl,-rpath,\$\$ORIGIN/../lib/ -L$DESTDIR$TARGETDIR/lib \ -lpthread -ldl -lutil" \ - CFLAGS="$HOSTCFLAGS -I$DESTDIR$TARGETDIR/include" \ + CC="$CC" CFLAGS="$HOSTCFLAGS -I$DESTDIR$TARGETDIR/include" \ ../gdb-${GDB_VERSION}/configure --prefix=$TARGETDIR \ --target=${TARGETARCH} --disable-werror --disable-nls $MAKE $JOBS || touch .failed @@ -575,7 +575,7 @@ printf "Building IASL ${IASL_VERSION} ... " export PATH=$PATH:$DESTDIR$TARGETDIR/bin rm -f .failed CFLAGS="$HOSTCFLAGS" - $MAKE || touch .failed + $MAKE CC="$CC" || touch .failed rm -f $DESTDIR$TARGETDIR/bin/iasl || touch .failed cp iasl $DESTDIR$TARGETDIR/bin || touch .failed if [ ! -f .failed ]; then touch .success; fi |