lpgcc was too noisy in some cases
[coreboot.git] / payloads / libpayload / bin / lpgcc
index 448557c0b9e2a7ca480cee0fd1dadb306ec8f4c9..57015d5f499a845318b14fdc23fb191d23e614fa 100755 (executable)
 # 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"
+
+if [ -n "$CC" ]; then
 b=`basename $CC`
 if [ "$b" = "lpgcc" ]; then
 CC=""
 fi
+fi
 
 
 
@@ -110,7 +114,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