diff options
author | Ronald G. Minnich <rminnich@gmail.com> | 2009-02-15 23:32:57 +0000 |
---|---|---|
committer | Ronald G. Minnich <rminnich@gmail.com> | 2009-02-15 23:32:57 +0000 |
commit | b575d67b9ab9b7255a615507f07cd4bbab7a60f0 (patch) | |
tree | 95f490f79c71ca871e70f182873fd80573bdfaba /payloads/libpayload/bin/lpgcc | |
parent | 5389c7f72b251a7e02df892271adac791e7d0266 (diff) |
This is a safety measure, since the shipping buildrom fails badly at present.
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3950 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'payloads/libpayload/bin/lpgcc')
-rwxr-xr-x | payloads/libpayload/bin/lpgcc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/payloads/libpayload/bin/lpgcc b/payloads/libpayload/bin/lpgcc index 35cc470e68..cbc52c12e6 100755 --- a/payloads/libpayload/bin/lpgcc +++ b/payloads/libpayload/bin/lpgcc @@ -27,6 +27,15 @@ ## SUCH DAMAGE. # GCC wrapper for libpayload +# 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. +b=`basename $CC` +if [ "$b" = "lpgcc" ]; then +CC="" +fi + + if [ "$CC" != "" ]; then DEFAULT_CC=$CC |