Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | -march flag is not in CFLAGS so this will always default to -mcpu=cortex-a8 |
| 2 | -mfpu=neon. |
| 3 | |
| 4 | Upstream-Status: Pending |
| 5 | Signed-off-by: Andrei Gherzan <andrei@gherzan.ro> |
| 6 | |
| 7 | diff --git a/configure b/configure |
| 8 | index 2916036..f4ece40 100755 |
| 9 | --- a/configure |
| 10 | +++ b/configure |
| 11 | @@ -773,9 +773,6 @@ if [ $asm = auto -a \( $ARCH = X86 -o $ARCH = X86_64 \) ] ; then |
| 12 | fi |
| 13 | |
| 14 | if [ $asm = auto -a $ARCH = ARM ] ; then |
| 15 | - # set flags so neon is built by default |
| 16 | - echo $CFLAGS | grep -Eq '(-mcpu|-march|-mfpu)' || CFLAGS="$CFLAGS -mcpu=cortex-a8 -mfpu=neon" |
| 17 | - |
| 18 | if cc_check '' '' '__asm__("rev ip, ip");' ; then define HAVE_ARMV6 |
| 19 | cc_check '' '' '__asm__("movt r0, #0");' && define HAVE_ARMV6T2 |
| 20 | cc_check '' '' '__asm__("vadd.i16 q0, q0, q0");' && define HAVE_NEON |
| 21 | @@ -788,8 +785,6 @@ if [ $asm = auto -a $ARCH = ARM ] ; then |
| 22 | fi |
| 23 | |
| 24 | if [ $asm = auto -a $ARCH = AARCH64 ] ; then |
| 25 | - # set flags so neon is built by default |
| 26 | - echo $CFLAGS | grep -Eq '(-mcpu|-march|-mfpu|-arch)' || CFLAGS="$CFLAGS -arch arm64 -mfpu=neon" |
| 27 | |
| 28 | if cc_check '' '' '__asm__("cmeq v0.8h, v0.8h, #0");' ; then define HAVE_NEON |
| 29 | ASFLAGS="$ASFLAGS -c" |