diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2023-10-01 11:06:46 +0200 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2023-10-01 11:06:46 +0200 |
commit | 19fa1f86843230439f3032092d65bbb0f07a399e (patch) | |
tree | 3bcaab636ed06cd11dbae07d250444639deb389c /src/Makefile | |
parent | da49ebb927cc15e5d77574b608b3a59b05cebc56 (diff) | |
download | VeraCrypt-19fa1f86843230439f3032092d65bbb0f07a399e.tar.gz VeraCrypt-19fa1f86843230439f3032092d65bbb0f07a399e.zip |
Linux: use "-std=c++11" for gcc 4.8 and adapt code to old compilers
Diffstat (limited to 'src/Makefile')
-rw-r--r-- | src/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Makefile b/src/Makefile index ed62a4f0..3848b6c0 100644 --- a/src/Makefile +++ b/src/Makefile @@ -203,8 +203,8 @@ ifeq "$(shell uname -s)" "Linux" # GCC version below 4.8 support minimal C++11 features through the switch -std=c++0x CXXFLAGS += -std=c++0x else ifeq ($(GCC_VERSION), 408) - # GCC version 4.8 supports C++11 features through the switch -std=gnu++11 - CXXFLAGS += -std=gnu++11 + # GCC version 4.8 supports C++11 features through the switch -std=c++11 + CXXFLAGS += -std=c++11 else ifeq ($(shell expr $(GCC_VERSION) \>= 1100), 1) # GNU GCC version 11 and higher compile with -std=gnu++17 by default # which breaks "byte" definitions in Crypto++ library. So set -std=gnu++14 instead. |