[x264-devel] [PATCH] Do not play with cflags on AArch64
Marcin Juszkiewicz
mjuszkiewicz at redhat.com
Mon Jun 1 11:24:55 CEST 2015
x264 has AArch64 support. But I had to remove some lines from it's
configure script to make it build.
All because it tries to be too smart. Sure, there is no need to check
for NEON as on this architecture it is mandatory. But I left code for
it alone. But there is no such switch in gcc as "-arch" one so let's
kill line which tries to add it.
Index: x264-0.142-20141221-6a301b6/configure
===================================================================
--- x264-0.142-20141221-6a301b6.orig/configure
+++ x264-0.142-20141221-6a301b6/configure
@@ -788,9 +788,6 @@ if [ $asm = auto -a $ARCH = ARM ] ; then
fi
if [ $asm = auto -a $ARCH = AARCH64 ] ; then
- # set flags so neon is built by default
- echo $CFLAGS | grep -Eq '(-mcpu|-march|-mfpu|-arch)' || CFLAGS="$CFLAGS -arch arm64 -mfpu=neon"
-
if cc_check '' '' '__asm__("cmeq v0.8h, v0.8h, #0");' ; then define HAVE_NEON
ASFLAGS="$ASFLAGS -c"
else
More information about the x264-devel
mailing list