VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2023-10-01 18:52:55 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2023-10-01 18:52:55 +0200
commit9d36f15bfcd87c61ce499c06d17443626a4bf478 (patch)
tree6cfc3b42d50841de33baf834e5896d536402c40f /src/Makefile
parent8eb232a4a38df34028e13f9214c8ff9a144ad03f (diff)
downloadVeraCrypt-9d36f15bfcd87c61ce499c06d17443626a4bf478.tar.gz
VeraCrypt-9d36f15bfcd87c61ce499c06d17443626a4bf478.zip
MacOS: Fix Blake2s SSE 4.1 not being builtVeraCrypt_1.26.7
For now, we set GCC_GTEQ_430 to 1 to each OS. Later we will always suppose that gcc is newer than 4.3 and remove this logic.
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile
index 3848b6c0..4bea83b4 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -303,6 +303,8 @@ ifeq "$(shell uname -s)" "Darwin"
CC := gcc
CXX := g++
+ GCC_GTEQ_430 := 1
+
C_CXX_FLAGS += -DTC_UNIX -DTC_BSD -DTC_MACOSX -mmacosx-version-min=$(VC_OSX_TARGET) -isysroot $(VC_OSX_SDK_PATH)
LFLAGS += -mmacosx-version-min=$(VC_OSX_TARGET) -Wl,-syslibroot $(VC_OSX_SDK_PATH)
WX_CONFIGURE_FLAGS += --with-macosx-version-min=$(VC_OSX_TARGET) --with-macosx-sdk=$(VC_OSX_SDK_PATH)
@@ -381,6 +383,8 @@ ifeq "$(shell uname -s)" "FreeBSD"
CC := cc
CXX := c++
+
+ GCC_GTEQ_430 := 1
ifeq "$(TC_BUILD_CONFIG)" "Release"
C_CXX_FLAGS += -fdata-sections -ffunction-sections -fpie
@@ -441,6 +445,8 @@ ifeq "$(shell uname -s)" "OpenBSD"
CC := cc
CXX := c++
+ GCC_GTEQ_430 := 1
+
ifeq "$(TC_BUILD_CONFIG)" "Release"
C_CXX_FLAGS += -fdata-sections -ffunction-sections -fpie
LFLAGS += -Wl,--gc-sections -pie