From bf47711ee7e230c182a270f6a5e4ec6ddc7237ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Przyby=C5=82?= Date: Fri, 13 May 2016 08:39:22 +0200 Subject: [PATCH] Makefile: fix build under gcc6 Veracrypt for build under GCC6 required using compatibility flag `-std=c++98` against change default C++ frontend in GCC6. The C++ frontend now defaults to C++14 standard instead of C++98 it has been defaulting to previously, for compiling older C++ code that might require either explicitly compiling with selected older C++ standards, or might require some code adjustment, see http://gcc.gnu.org/gcc-6/porting_to.html for details. The experimental C++17 support has been enhanced in this release. from: https://gcc.gnu.org/ml/gcc-announce/2016/msg00000.html --- src/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index 70fb26da..8980d336 100644 --- a/src/Makefile +++ b/src/Makefile @@ -40,7 +40,7 @@ export AS := nasm export RANLIB ?= ranlib export CFLAGS := -Wall -export CXXFLAGS := -Wall -Wno-unused-parameter +export CXXFLAGS := -Wall -Wno-unused-parameter -std=c++98 C_CXX_FLAGS := -MMD -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -I$(BASE_DIR) -I$(BASE_DIR)/Crypto export ASFLAGS := -Ox -D __GNUC__ export LFLAGS :=