summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xpayloads/libpayload/bin/lpgcc9
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