Skip to content

Commit 31235a3

Browse files
committed
configure: Do not set arm CFLAGS if the target host is aarch64
Unbreaks --enable-neon
1 parent fc485c5 commit 31235a3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

configure.ac

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,9 @@ fi
162162
AC_ARG_ENABLE(neon, [ --enable-neon Enable NEON support], [
163163
if test "x$enableval" != xno; then
164164
has_neon=yes
165-
CFLAGS="$CFLAGS -O3 -march=armv7-a -mfpu=neon"
165+
AS_CASE(["$host"],
166+
[arm*], [CFLAGS="$CFLAGS -O3 -march=armv7-a -mfpu=neon"]
167+
)
166168
else
167169
has_neon=no
168170
fi

0 commit comments

Comments
 (0)