From 3330bf4f2fd3494e25862943aff0533ffd1728c3 Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Sat, 4 Nov 2017 07:52:41 -0400 Subject: [PATCH] fix gcc 7 on ubuntu --- Makefile.linux | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile.linux b/Makefile.linux index 0fd8873d..eec1e2cc 100644 --- a/Makefile.linux +++ b/Makefile.linux @@ -21,6 +21,8 @@ else ifeq ($(shell expr match ${CXXVER} "4\.6"),3) # = 4.6 NEEDED_CXXFLAGS += -std=c++0x else ifeq ($(shell expr match ${CXXVER} "[5-7]\.[0-9]"),3) # gcc >= 5.0 NEEDED_CXXFLAGS += -std=c++11 +else ifeq ($(shell expr match ${CXXVER} "7"),1) # gcc 7 ubuntu + NEEDED_CXXFLAGS += -std=c++11 else # not supported $(error Compiler too old) endif