Update coreboot crossgcc toolchain, GCC 4.5.1, MPFR 3.0.0, GDB 7.2.
[coreboot.git] / payloads / libpayload / bin / lpgcc
index 448557c0b9e2a7ca480cee0fd1dadb306ec8f4c9..826e4989419d4c5139cf8893d70d9a5c596779b1 100755 (executable)
@@ -30,6 +30,8 @@
 # let's not recurse.
 # This is a hack, I know, but it makes sure that really simple user errors
 # don't fork-bomb your machine.
+echo "CC = $CC"
+
 b=`basename $CC`
 if [ "$b" = "lpgcc" ]; then
 CC=""
@@ -110,7 +112,7 @@ if [ "$CONFIG_TARGET_POWERPC" = "y" ]; then
   _ARCHLIBDIR=$_LIBDIR/powerpc
 fi
 
-_CFLAGS="-m32 -nostdinc -nostdlib -I$_INCDIR -I$_ARCHINCDIR"
+_CFLAGS="-m32 -nostdinc -nostdlib -I$_INCDIR -I$_ARCHINCDIR -D__LIBPAYLOAD__=1"
 
 # Check for the -fno-stack-protector silliness