mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 11:08:02 -06:00
Added compatibility with GNU GCC 11 Toolchain (#811)
This fixes compilation issues when using GNU GCC >=11 where parameter -std=gnu++17 is used by default. Resolves #802
This commit is contained in:
@@ -174,6 +174,15 @@ ifeq "$(shell uname -s)" "Linux"
|
|||||||
|
|
||||||
PLATFORM := Linux
|
PLATFORM := Linux
|
||||||
C_CXX_FLAGS += -DTC_UNIX -DTC_LINUX
|
C_CXX_FLAGS += -DTC_UNIX -DTC_LINUX
|
||||||
|
|
||||||
|
# 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.
|
||||||
|
GCC11PLUS := $(shell expr `$(CC) -dumpversion | cut -f1 -d.` \>= 11)
|
||||||
|
ifeq "$(GCC11PLUS)" "1"
|
||||||
|
CXXFLAGS += -std=gnu++14
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
ifeq "$(SIMD_SUPPORTED)" "1"
|
ifeq "$(SIMD_SUPPORTED)" "1"
|
||||||
CFLAGS += -msse2
|
CFLAGS += -msse2
|
||||||
|
|||||||
Reference in New Issue
Block a user