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

Add support for building under FreeBSD 11

This commit is contained in:
Mounir IDRASSI
2017-07-09 23:41:53 +02:00
parent e273149541
commit 342b8636d8
6 changed files with 1242 additions and 11 deletions

View File

@@ -287,6 +287,18 @@ ifeq "$(shell uname -s)" "FreeBSD"
CC := cc
CXX := c++
ifeq "$(TC_BUILD_CONFIG)" "Release"
C_CXX_FLAGS += -fdata-sections -ffunction-sections -fpie
LFLAGS += -Wl,--gc-sections -pie
ifneq "$(shell ld --help 2>&1 | grep sysv | wc -l)" "0"
LFLAGS += -Wl,--hash-style=sysv
endif
WXCONFIG_CFLAGS += -fpie -fPIC
WXCONFIG_CXXFLAGS += -fpie -fPIC
endif
ifeq "$(SIMD_SUPPORTED)" "1"
CFLAGS += -msse2 -maes