diff --git a/make/compiler_flags b/make/compiler_flags index 549de3925d0..1552381f232 100644 --- a/make/compiler_flags +++ b/make/compiler_flags @@ -58,7 +58,7 @@ ifneq (,$(findstring g++,$(CXX))) CXX_TYPE ?= gcc endif CXX_TYPE ?= other -CXX_VERSION := $(shell $(CXX) -dumpversion 2>&1) +CXX_VERSION := $(shell $(CXX) -dumpfullversion -dumpversion 2>&1) CXX_MAJOR := $(word 1,$(subst ., ,$(CXX_VERSION))) CXX_MINOR := $(word 2,$(subst ., ,$(CXX_VERSION)))