mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 11:08:02 -06:00
Linux: Add parameter to Makefile for enabling SSSE3 and SSE4.1 support in compiler
This commit is contained in:
16
src/Makefile
16
src/Makefile
@@ -20,6 +20,8 @@
|
|||||||
# RESOURCEDIR: Run-time resource directory
|
# RESOURCEDIR: Run-time resource directory
|
||||||
# VERBOSE: Enable verbose messages
|
# VERBOSE: Enable verbose messages
|
||||||
# WXSTATIC: Use static wxWidgets library
|
# WXSTATIC: Use static wxWidgets library
|
||||||
|
# SSSE3: Enable SSSE3 support in compiler
|
||||||
|
# SSE41: Enable SSE4.1 support in compiler
|
||||||
|
|
||||||
#------ Targets ------
|
#------ Targets ------
|
||||||
# all
|
# all
|
||||||
@@ -161,12 +163,26 @@ ifeq "$(shell uname -s)" "Linux"
|
|||||||
PLATFORM := Linux
|
PLATFORM := Linux
|
||||||
C_CXX_FLAGS += -DTC_UNIX -DTC_LINUX
|
C_CXX_FLAGS += -DTC_UNIX -DTC_LINUX
|
||||||
|
|
||||||
|
CFLAGS += -msse2
|
||||||
|
CXXFLAGS += -msse2
|
||||||
|
|
||||||
GCC_GTEQ_440 := $(shell expr `gcc -dumpversion | sed -e 's/\.\([0-9][0-9]\)/\1/g' -e 's/\.\([0-9]\)/0\1/g' -e 's/^[0-9]\{3,4\}$$/&00/'` \>= 40400)
|
GCC_GTEQ_440 := $(shell expr `gcc -dumpversion | sed -e 's/\.\([0-9][0-9]\)/\1/g' -e 's/\.\([0-9]\)/0\1/g' -e 's/^[0-9]\{3,4\}$$/&00/'` \>= 40400)
|
||||||
|
GCC_GTEQ_430 := $(shell expr `gcc -dumpversion | sed -e 's/\.\([0-9][0-9]\)/\1/g' -e 's/\.\([0-9]\)/0\1/g' -e 's/^[0-9]\{3,4\}$$/&00/'` \>= 40300)
|
||||||
ifeq "$(GCC_GTEQ_440)" "1"
|
ifeq "$(GCC_GTEQ_440)" "1"
|
||||||
CFLAGS += -maes
|
CFLAGS += -maes
|
||||||
CXXFLAGS += -maes
|
CXXFLAGS += -maes
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq "$(GCC_GTEQ_430)" "1"
|
||||||
|
ifeq "$(origin SSSE3)" "command line"
|
||||||
|
CFLAGS += -mssse3 -msse4.1
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq "$(origin SSE41)" "command line"
|
||||||
|
CXXFLAGS += -mssse3 -msse4.1
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq "$(TC_BUILD_CONFIG)" "Release"
|
ifeq "$(TC_BUILD_CONFIG)" "Release"
|
||||||
C_CXX_FLAGS += -fdata-sections -ffunction-sections
|
C_CXX_FLAGS += -fdata-sections -ffunction-sections
|
||||||
LFLAGS += -Wl,--gc-sections
|
LFLAGS += -Wl,--gc-sections
|
||||||
|
|||||||
Reference in New Issue
Block a user