packaging: arm: enable neon for arm64 46/30446/2 submit/tizen_common/20141125.093701
authorChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 13:03:50 +0000 (22:03 +0900)
committerPhilippe Coval <philippe.coval@open.eurogiciel.org>
Tue, 18 Nov 2014 18:07:47 +0000 (19:07 +0100)
This patch enables neon for arm64 because the neon for arm64 was
supported since v10.

Change-Id: Ia11563b6f73c24eac7c67a0c3384dbf64e220842
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
Bug-Tizen: TC-2106/related
Signed-off-by: Philippe Coval <philippe.coval@open.eurogiciel.org>
packaging/libav.spec

index 89547ded6ff18515cd33c25a24272e0517b65908..e53c0c9444322addc13760c6b07203621056d8b0 100644 (file)
@@ -137,30 +137,23 @@ export CONFIGURE_OPTIONS="--enable-shared    --disable-static   \
 --enable-swscale        --disable-yasm  \
 --enable-fft    --enable-rdft   --enable-mdct   --enable-neon \
 "
-%ifarch %{arm}
+%ifarch %{arm} aarch64
 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 \
-%ifnarch aarch64
-       --extra-cflags="-mfpu=neon" \
-%endif
-       $CONFIGURE_OPTIONS
-%else
-./configure --prefix=%{_prefix} --shlibdir=%_libdir --libdir=%_libdir  $CONFIGURE_OPTIONS
+export CONFIGURE_OPTIONS+="--extra-cflags=-mfpu=neon"
 %endif
 
+./configure \
+    --prefix=%{_prefix} \
+    --libdir=%_libdir \
+    --shlibdir=%_libdir \
+    $CONFIGURE_OPTIONS
+
 %build