Fix aarch64 build
authorYury Usishchev <y.usishchev@samsung.com>
Mon, 5 May 2014 18:03:47 +0000 (22:03 +0400)
committerPhilippe Coval <philippe.coval@open.eurogiciel.org>
Tue, 18 Nov 2014 11:07:57 +0000 (12:07 +0100)
Remove flags with NEON when compiling for aarch64.

Change-Id: I201b170a097be2b1fa133639ef2a0e140158f8e1
Signed-off-by: Yury Usishchev <y.usishchev@samsung.com>
packaging/libav.spec

index 8f6a947..1be9a8a 100644 (file)
@@ -142,10 +142,21 @@ export CONFIGURE_OPTIONS+="--disable-mmx"
 %else
 %endif
 
+%ifarch aarch64
+export CONFIGURE_OPTIONS+=" --disable-neon"
+%endif
+
 CFLAGS="%{optflags} -fPIC -DEXPORT_API=\"__attribute__((visibility(\\\"default\\\")))\" "; export CFLAGS
 
 %ifarch %{arm}
-./configure --prefix=%{_prefix} --libdir=%_libdir  --shlibdir=%_libdir $CONFIGURE_OPTIONS --extra-cflags="-mfpu=neon"
+./configure \
+       --prefix=%{_prefix} \
+       --libdir=%_libdir \
+       --shlibdir=%_libdir \
+%ifnarch aarch64
+       --extra-cflags="-mfpu=neon" \
+%endif
+       $CONFIGURE_OPTIONS
 %else
 ./configure --prefix=%{_prefix} --shlibdir=%_libdir --libdir=%_libdir  $CONFIGURE_OPTIONS
 %endif