From a2de831122a30c62dd771e8b3d52df73ec1c2366 Mon Sep 17 00:00:00 2001 From: Dmitry Marakasov Date: Tue, 31 Oct 2017 18:18:06 +0300 Subject: [PATCH] Only apply -std=c++11 to C++ flags CPPFLAGS are applied to both .cpp and .c files, and that breaks clang build: error: invalid argument '-std=c++11' not allowed with 'C/ObjC' --- Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 59b25c03..aea720c2 100644 --- a/Makefile.am +++ b/Makefile.am @@ -7,7 +7,7 @@ hyperrogue_SOURCES = hyper.cpp savepng.c # Some definitions used in graph.cpp hyperrogue_CPPFLAGS = -DFONTDESTDIR=\"$(pkgdatadir)/DejaVuSans-Bold.ttf\" -DMUSICDESTDIR=\"$(pkgdatadir)/hyperrogue-music.txt\" -DSOUNDDESTDIR=\"$(pkgdatadir)/sounds/\" -hyperrogue_CPPFLAGS += -std=c++11 +hyperrogue_CXXFLAGS = -std=c++11 # Musicdir musicdir=$(datadir)/hyperrogue/music