From bf09cf1e3678ad6513aaf45ffce0997db1a6504d Mon Sep 17 00:00:00 2001 From: Pascal Massimino Date: Fri, 20 Mar 2015 07:54:33 -0700 Subject: [PATCH] conditionally add -msse4.1 in Makefile.unix Change-Id: I46798d39f5354fe44224a4f9580665a967d2fa1f --- makefile.unix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/makefile.unix b/makefile.unix index 7011c20d..e0cff2d5 100644 --- a/makefile.unix +++ b/makefile.unix @@ -71,6 +71,12 @@ EXTRA_FLAGS += -Wformat-security -Wformat-nonliteral # EXTRA_FLAGS += -Wvla +# SSE4.1-specific flags: +ifeq ($(HAVE_SSE41), 1) +EXTRA_FLAGS += -DWEBP_HAVE_SSE41 +src/dsp/%_sse41.o: EXTRA_FLAGS += -msse4.1 +endif + # AVX2-specific flags: ifeq ($(HAVE_AVX2), 1) EXTRA_FLAGS += -DWEBP_HAVE_AVX2