Skip to content

Commit

Permalink
MacOS: Fix Blake2s SSE 4.1 not being built
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
idrassi committed Oct 1, 2023
1 parent 8eb232a commit 9d36f15
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9d36f15

Please sign in to comment.