diff --git a/src/Makefile.cfg b/src/Makefile.cfg index 5248dbdf..b839b5ea 100644 --- a/src/Makefile.cfg +++ b/src/Makefile.cfg @@ -54,7 +54,10 @@ ifeq (,$(filter GCC%,$(.VARIABLES))) version:=$(shell $(CC) --version) # check if this is in fact GCC ifneq (,$(or $(findstring gcc,$(version)),$(findstring GCC,$(version)))) - version:=$(shell $(CC) -dumpversion) + shellversion:=$(shell $(CC) -dumpversion) + + # Try to remove "-win32" + version:=$(subst -win32,.0,$(shellversion)) # Turn version into words of major, minor v:=$(subst ., ,$(version))