VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2018-09-01 01:13:29 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2018-09-01 01:15:33 +0200
commit5455c89a5016ef73c1b91aaf0a93ea30509026c0 (patch)
treef6d74054503fc7a99dbc2533ddcf4371087374c3 /src/Makefile
parent09afb91c897e8617b632a6c8cbaab0a98e21549b (diff)
downloadVeraCrypt-5455c89a5016ef73c1b91aaf0a93ea30509026c0.tar.gz
VeraCrypt-5455c89a5016ef73c1b91aaf0a93ea30509026c0.zip
Linux/FreeBSD: Add 32-bit build configuration targetting legacy CPUs that don't support SSE2 instructions.
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile
index 4f8bb42b..50af3021 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -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