]> git.sesse.net Git - vlc/commitdiff
contrib: speexdsp: fix build with android-ndk10c
authorThomas Guillem <tom@gllm.fr>
Mon, 20 Oct 2014 12:50:27 +0000 (14:50 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Mon, 20 Oct 2014 15:38:14 +0000 (17:38 +0200)
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@videolan.org>
contrib/src/speexdsp/rules.mak

index b8a0fd646195c6cce52e6532ae78c265aad79d55..3cc2b15bc899e7e5dfd19051c3fe75967480400f 100644 (file)
@@ -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)