From b575d67b9ab9b7255a615507f07cd4bbab7a60f0 Mon Sep 17 00:00:00 2001 From: "Ronald G. Minnich" Date: Sun, 15 Feb 2009 23:32:57 +0000 Subject: This is a safety measure, since the shipping buildrom fails badly at present. Signed-off-by: Ronald G. Minnich Acked-by: Peter Stuge git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3950 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- payloads/libpayload/bin/lpgcc | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'payloads') 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 -- cgit v1.2.3