MacOS: Fix Blake2s SSE 4.1 not being built

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.
This commit is contained in:
Mounir IDRASSI 2023-10-01 18:52:55 +02:00
parent 8eb232a4a3
commit 9d36f15bfc
No known key found for this signature in database
GPG Key ID: FC1B00364B3FE937

View File

@ -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