From d804f0e4b649a724b4a09eaa65213a55e107cd19 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Wed, 29 Apr 2015 17:43:37 +1000 Subject: [PATCH] build: enable c++1z --- m4/nc_cxx.m4 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/m4/nc_cxx.m4 b/m4/nc_cxx.m4 index 7e675ab3..f4d7f91a 100644 --- a/m4/nc_cxx.m4 +++ b/m4/nc_cxx.m4 @@ -1,10 +1,12 @@ AC_DEFUN([NC_CXX],[ AX_CHECK_COMPILE_FLAG( - [-std=c++1y], - [AX_APPEND_FLAG([-std=c++1y], [CXXFLAGS])], + [-std=c++1z], + [AX_APPEND_FLAG([-std=c++1z], [CXXFLAGS])], [AC_ERROR([Unable to enable c++1y])] ) + AX_APPEND_COMPILE_FLAGS([-pipe], [], [-Werror]) + AX_APPEND_COMPILE_FLAGS([-fno-deduce-init-list], [], [-Werror]) AX_APPEND_COMPILE_FLAGS([-fno-deduce-init-list], [], [-Werror])