[vlc-commits] contrib: speexdsp: fix build with android-ndk10c

Thomas Guillem git at videolan.org
Mon Oct 20 17:39:02 CEST 2014


vlc | branch: master | Thomas Guillem <tom at gllm.fr> | Mon Oct 20 14:50:27 2014 +0200| [ef98e81ff014175fd7494c8313de8883d15834b3] | committer: Jean-Baptiste Kempf

contrib: speexdsp: fix build with android-ndk10c

In android-ndk10c, there is a "arm_neon.h" for all archs. The arm_neon.h for
x86* contains correspondence between neon and sse. In speexdsp, There is a
conflict between resample_sse.h and resample_neon.h. So disable neon if arch is
known to don't have neon.

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ef98e81ff014175fd7494c8313de8883d15834b3
---

 contrib/src/speexdsp/rules.mak |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/contrib/src/speexdsp/rules.mak b/contrib/src/speexdsp/rules.mak
index b8a0fd6..3cc2b15 100644
--- a/contrib/src/speexdsp/rules.mak
+++ b/contrib/src/speexdsp/rules.mak
@@ -27,6 +27,9 @@ ifeq ($(ARCH),aarch64)
 # old neon, not compatible with aarch64
 SPEEXDSP_CONF += --disable-neon
 endif
+ifndef HAVE_NEON
+SPEEXDSP_CONF += --disable-neon
+endif
 ifndef HAVE_FPU
 SPEEXDSP_CONF += --enable-fixed-point
 ifeq ($(ARCH),arm)



More information about the vlc-commits mailing list