[vlc-commits] contrib: vpx: Fix android arm64 builds
Hugo Beauzée-Luyssen
git at videolan.org
Thu Dec 6 14:52:01 CET 2018
vlc/vlc-3.0 | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Thu Dec 6 14:46:32 2018 +0100| [814aeb76deb662604bc3fa76faa4eac4333f0515] | committer: Hugo Beauzée-Luyssen
contrib: vpx: Fix android arm64 builds
(cherry picked from commit e851e1b23a581a82dd0bfbe3b1eaa3039b657f5c)
Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=814aeb76deb662604bc3fa76faa4eac4333f0515
---
contrib/src/vpx/libvpx-android.patch | 22 +++++++++++++++++++++-
1 file changed, 21 insertions(+), 1 deletion(-)
diff --git a/contrib/src/vpx/libvpx-android.patch b/contrib/src/vpx/libvpx-android.patch
index ef7e6bde8f..62a989d2f1 100644
--- a/contrib/src/vpx/libvpx-android.patch
+++ b/contrib/src/vpx/libvpx-android.patch
@@ -39,9 +39,10 @@ cpu-features.c. Additionally, we don't need to link with pthread.
TOOLCHAIN_PATH=${COMPILER_LOCATION%/*}/arm-linux-androideabi-
- CC=${TOOLCHAIN_PATH}gcc
- CXX=${TOOLCHAIN_PATH}g++
+- AR=${TOOLCHAIN_PATH}ar
+ CC=clang
+ CXX=clang++
- AR=${TOOLCHAIN_PATH}ar
++ AR=llvm-ar
LD=${TOOLCHAIN_PATH}gcc
AS=${TOOLCHAIN_PATH}as
@@ -948,7 +948,8 @@
@@ -74,3 +75,22 @@ cpu-features.c. Additionally, we don't need to link with pthread.
%if CONFIG_POSTPROC=1 || CONFIG_VP9_POSTPROC=1
%ifdef __ANDROID__
extern sym(lrand48)
+--- libvpx/build/make/configure.sh.old 2018-12-06 14:15:31.119934158 +0100
++++ libvpx/build/make/configure.sh 2018-12-06 14:15:45.883934102 +0100
+@@ -950,13 +950,12 @@
+ add_ldflags "--sysroot=${alt_libc}"
+ fi
+
+- # linker flag that routes around a CPU bug in some
+- # Cortex-A8 implementations (NDK Dev Guide)
+- add_ldflags "-Wl,--fix-cortex-a8"
+-
+ enable_feature pic
+ soft_enable realtime_only
+ if [ ${tgt_isa} = "armv7" ]; then
++ # linker flag that routes around a CPU bug in some
++ # Cortex-A8 implementations (NDK Dev Guide)
++ add_ldflags "-Wl,--fix-cortex-a8"
+ soft_enable runtime_cpu_detect
+ fi
+ if enabled runtime_cpu_detect; then
More information about the vlc-commits
mailing list