You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
vmaf/SOURCES/0011-Add-msse2-for-i686.patch

42 lines
1.1 KiB

From c4af3c8270c8f498601d7dd68426c4bd52583006 Mon Sep 17 00:00:00 2001
From: Nicolas Chauvet <kwizart@gmail.com>
Date: Sat, 7 Apr 2018 19:30:49 +0200
Subject: [PATCH 11/11] Add -msse2 for i686
With x86_64 -msse2 is implicit, but not i686
Both asm option needs to be enabled there
Signed-off-by: Nicolas Chauvet <kwizart@gmail.com>
---
wrapper/Makefile | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/wrapper/Makefile b/wrapper/Makefile
index ceba5dc..a38d35b 100644
--- a/wrapper/Makefile
+++ b/wrapper/Makefile
@@ -14,9 +14,11 @@ LIBDIR ?= $(PREFIX)/lib
ifeq ($(UNAME), x86_64)
USE_AVX = 1
+ ASM_CFLAGS = -mavx
endif
ifeq ($(UNAME), i386)
USE_AVX = 1
+ ASM_CFLAGS = -msse -msse2 -mavx
endif
ifeq ($(USE_AVX), 1)
AVX_OBJS := \
@@ -70,7 +72,7 @@ CXXFLAGS := -std=c++11 $(CFLAGS_COMMON) $(CXXFLAGS)
CPPFLAGS := $(CPPFLAGS)
LDFLAGS := $(LDFLAGS)
-$(AVX_OBJS): EXTRA_CFLAGS := -mavx
+$(AVX_OBJS): EXTRA_CFLAGS := $(ASM_CFLAGS)
$(OBJDIR)/alloc.o: $(FEATURESRCDIR)/common/alloc.c
$(CC) -c -o $@ $(CFLAGS) $(CPPFLAGS) $<
--
2.17.1