rc Makefile: Fix the predicate to detect g++

Some distributions replace the expected "GCC" tag with their own name
and version, causing the Makefile not to include a compiler flag.
This commit is contained in:
Frank LENORMAND 2020-03-12 17:04:34 +03:00
parent 6766297623
commit 789caf89a3

View File

@ -95,7 +95,7 @@ CXXFLAGS += -pedantic -std=c++17 -g -Wall -Wextra -Wno-unused-parameter -Wno-sig
compiler := $(shell $(CXX) --version)
ifneq (,$(findstring clang,$(compiler)))
CXXFLAGS += -frelaxed-template-template-args
else ifneq (,$(findstring GCC,$(compiler)))
else ifneq (,$(findstring g++,$(compiler)))
CXXFLAGS += -Wno-init-list-lifetime
endif