mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 11:08:02 -06:00
Linux: fix mount failure with "Invalid characters encountered" error when building using gcc-5 by disabling the new C++ ABI. For this to work, wxWidgets static library must be built and used by VeraCrypt by specifying WXSTATIC=1 in make command line.
This commit is contained in:
@@ -175,6 +175,12 @@ ifeq "$(shell uname -s)" "Linux"
|
||||
|
||||
ifneq "$(origin WXSTATIC)" "command line"
|
||||
LFLAGS += -ldl
|
||||
else
|
||||
GCC5USED := $(shell expr `gcc -dumpversion | cut -f1 -d.` \>= 5)
|
||||
ifeq "$(GCC5USED)" "1"
|
||||
CXXFLAGS += -D_GLIBCXX_USE_CXX11_ABI=0
|
||||
WXCONFIG_CXXFLAGS += -D_GLIBCXX_USE_CXX11_ABI=0
|
||||
endif
|
||||
endif
|
||||
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user