From f0bf06aee2cc170f8a50c9821e08437ea993cecc Mon Sep 17 00:00:00 2001
From: James R <justsomejames2@gmail.com>
Date: Sat, 15 Aug 2020 21:29:02 -0700
Subject: [PATCH] Is it GCC is it gcc, is it????

(cherry picked from commit ef2bff6383b16385f9874e1c9c6b66c9df794f5b)
---
 src/Makefile.cfg | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/Makefile.cfg b/src/Makefile.cfg
index 5c56978e7..81cbc1aee 100644
--- a/src/Makefile.cfg
+++ b/src/Makefile.cfg
@@ -48,7 +48,9 @@ endif
 
 # Automatically set version flag, but not if one was manually set
 ifeq   (,$(filter GCC%,$(.VARIABLES)))
- ifneq (,$(findstring gcc,$(shell $(CC) --version))) # if it's GCC
+ version:=$(shell $(CC) --version)
+ # check if this is in fact GCC
+ ifneq (,$(or $(findstring gcc,$(version)),$(findstring GCC,$(version))))
   version:=$(shell $(CC) -dumpversion)
 
   # Turn version into words of major, minor
-- 
GitLab