From 789caf89a345103d705045feedd87552a9576bd9 Mon Sep 17 00:00:00 2001 From: Frank LENORMAND Date: Thu, 12 Mar 2020 17:04:34 +0300 Subject: [PATCH] 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. --- src/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index 123ef1d8f..1d1bc0e07 100644 --- a/src/Makefile +++ b/src/Makefile @@ -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