1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2025-11-11 11:08:02 -06:00

Linux/FreeBSD: Add 32-bit build configuration targetting legacy CPUs that don't support SSE2 instructions.

This commit is contained in:
Mounir IDRASSI
2018-09-01 01:13:29 +02:00
parent 09afb91c89
commit 5455c89a50
3 changed files with 79 additions and 0 deletions

View File

@@ -22,6 +22,7 @@
# WXSTATIC: Use static wxWidgets library
# SSSE3: Enable SSSE3 support in compiler
# SSE41: Enable SSE4.1 support in compiler
# NOSSE2: Disable SEE2 support in compiler
#------ Targets ------
# all
@@ -158,6 +159,10 @@ else ifeq "$(CPU_ARCH)" "x64"
C_CXX_FLAGS += -D TC_ARCH_X64
endif
ifeq "$(origin NOSSE2)" "command line"
SIMD_SUPPORTED := 0
endif
#------ Linux configuration ------
@@ -211,6 +216,13 @@ ifeq "$(shell uname -s)" "Linux"
WXCONFIG_CXXFLAGS += -D_GLIBCXX_USE_CXX11_ABI=0
endif
endif
ifeq "$(origin NOSSE2)" "command line"
CFLAGS += -mno-sse2
CXXFLAGS += -mno-sse2
WXCONFIG_CFLAGS += -mno-sse2
WXCONFIG_CXXFLAGS += -mno-sse2
endif
endif
@@ -317,6 +329,13 @@ ifeq "$(shell uname -s)" "FreeBSD"
CXXFLAGS += -mssse3 -msse4.1
endif
endif
ifeq "$(origin NOSSE2)" "command line"
CFLAGS += -mno-sse2
CXXFLAGS += -mno-sse2
WXCONFIG_CFLAGS += -mno-sse2
WXCONFIG_CXXFLAGS += -mno-sse2
endif
endif