1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2025-11-11 11:08:02 -06:00

FreeBSD 11 build and use compatibility

This commit is contained in:
Mounir IDRASSI
2017-04-23 14:18:48 +02:00
parent 100b79ddfa
commit 371b9c904a
2 changed files with 21 additions and 3 deletions

View File

@@ -285,6 +285,24 @@ ifeq "$(shell uname -s)" "FreeBSD"
PLATFORM := FreeBSD
PLATFORM_UNSUPPORTED := 1
C_CXX_FLAGS += -DTC_UNIX -DTC_BSD -DTC_FREEBSD
CC := cc
CXX := c++
ifeq "$(SIMD_SUPPORTED)" "1"
CFLAGS += -msse2 -maes
CXXFLAGS += -msse2 -maes
ifeq "$(origin SSSE3)" "command line"
CFLAGS += -mssse3
CXXFLAGS += -mssse3
endif
ifeq "$(origin SSE41)" "command line"
CFLAGS += -mssse3 -msse4.1
CXXFLAGS += -mssse3 -msse4.1
endif
endif
endif