diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2018-02-27 16:33:43 +0300 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2018-02-27 16:33:43 +0300 |
commit | 31235a3c2e040f06fcaacb113db89c263d6c0669 (patch) | |
tree | 8576865fbfaa797d4212133127d5ac0eefeb800f | |
parent | fc485c564c1172b1f78d113239f1d93ad8321316 (diff) |
configure: Do not set arm CFLAGS if the target host is aarch64
Unbreaks --enable-neon
-rw-r--r-- | configure.ac | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 1de0c23..2c5cbba 100644 --- a/configure.ac +++ b/configure.ac @@ -162,7 +162,9 @@ fi AC_ARG_ENABLE(neon, [ --enable-neon Enable NEON support], [ if test "x$enableval" != xno; then has_neon=yes -CFLAGS="$CFLAGS -O3 -march=armv7-a -mfpu=neon" +AS_CASE(["$host"], + [arm*], [CFLAGS="$CFLAGS -O3 -march=armv7-a -mfpu=neon"] +) else has_neon=no fi |