summaryrefslogtreecommitdiff
path: root/package/brutefir
diff options
context:
space:
mode:
authorOliver Schib <lich000king@yahoo.de>2016-01-08 19:32:20 +0100
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2016-01-08 19:50:27 +0100
commit72592dc62c0de0c4c55b889e1a2e2958ceae23d6 (patch)
treef9b58948a68286aeb972bdb273daa700e5472b57 /package/brutefir
parente3a8d4cc1cad6e5bd94cb95864fcba63c2bfe560 (diff)
Add SSE2 optimisation to BruteFIR
Signed-off-by: Oliver Schib <lich000king@yahoo.de>
Diffstat (limited to 'package/brutefir')
-rw-r--r--package/brutefir/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/package/brutefir/Makefile b/package/brutefir/Makefile
index 23577ad23..a65661aad 100644
--- a/package/brutefir/Makefile
+++ b/package/brutefir/Makefile
@@ -22,9 +22,13 @@ include $(ADK_TOPDIR)/mk/package.mk
$(eval $(call PKG_template,BRUTEFIR,brutefir,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION)))
-ifeq ($(ADK_TARGET_ARCH_X86)$(ADK_TARGET_ARCH_X86_64),y)
+ifeq ($(ADK_TARGET_CPU_WITH_SSE2),y)
+TARGET_CFLAGS+= -msse2
+else
+ifeq($ADK_TARGET_CPU_WITH_SSE),y)
TARGET_CFLAGS+= -msse
endif
+endif
GCCPATH:= $(subst libgcc.a,,$(shell $(TARGET_CC) -print-libgcc-file-name))
XAKE_FLAGS+= LIBPATHS="-L$(GCCPATH)"