From 371b9c904aef37863aa57e2e848915df9ba9da9b Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Sun, 23 Apr 2017 14:18:48 +0200 Subject: FreeBSD 11 build and use compatibility --- src/Makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src/Makefile') diff --git a/src/Makefile b/src/Makefile index dea172f6..1b71f27f 100644 --- a/src/Makefile +++ b/src/Makefile @@ -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 -- cgit v1.2.3