1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
Description: fix building with GCC 6
This patch enables support for an older C++ standard, as a newer one
(breaking some compatibility) is apparently the default now in GCC6.
Author: Sascha Steinbiss <sascha@steinbiss.name>
--- a/src/Makefile
+++ b/src/Makefile
@@ -4,11 +4,11 @@
####### Compiler, tools and options
-CC = gcc
-CXX = g++
+CC ?= gcc
+CXX ?= g++
DEFINES =
CFLAGS += -pipe -O3 $(DEFINES)
-CXXFLAGS += -pipe -O3 $(DEFINES)
+CXXFLAGS += -std=gnu++98 -pipe -O3 $(DEFINES)
INCPATH = -I. -I/usr/include
LINK = g++
#LFLAGS = -m64
|