From f0aac1b49079185ded1bcf802e1a12467bfa4dcd Mon Sep 17 00:00:00 2001 From: Gustavo Sverzut Barbieri Date: Mon, 20 Jan 2014 12:15:56 -0200 Subject: [PATCH] configure: include required NEON build flags. It is required to use "-mfpu=neon" to build NEON. Patch-by: Albin Tonnerre --- configure.ac | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configure.ac b/configure.ac index 045af73cfe..9d12cc813c 100644 --- a/configure.ac +++ b/configure.ac @@ -510,6 +510,8 @@ case $host_cpu in arm*) build_cpu_neon="yes" AC_MSG_CHECKING([whether to use NEON instructions]) + CFLAGS_save="${CFLAGS}" + CFLAGS="${CFLAGS} -mfpu=neon" AC_TRY_COMPILE([#include ], [asm volatile ("vqadd.u8 d0, d1, d0\n")], [ @@ -521,6 +523,7 @@ case $host_cpu in AC_MSG_RESULT([no]) build_cpu_neon="no" ]) + CFLAGS="${CFLAGS_save}" ;; esac