From dd15f7cf2811574b24560d662e69d41211839605 Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Thu, 17 Dec 2015 23:06:01 +0100 Subject: [PATCH] libvpx: Support 64-bit builds --- packages/libvpx/build.sh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/packages/libvpx/build.sh b/packages/libvpx/build.sh index f546b3953..3da92f7d7 100644 --- a/packages/libvpx/build.sh +++ b/packages/libvpx/build.sh @@ -6,18 +6,24 @@ TERMUX_PKG_FOLDERNAME=libvpx-${TERMUX_PKG_VERSION} termux_step_configure () { if [ $TERMUX_ARCH = "arm" ]; then - _CONFIGURE_TARGET=armv7-android-gcc + _CONFIGURE_TARGET="--target=armv7-android-gcc" elif [ $TERMUX_ARCH = "i686" ]; then export AS=yasm export LD=$CC - _CONFIGURE_TARGET=x86-android-gcc + _CONFIGURE_TARGET="--target=x86-android-gcc" + elif [ $TERMUX_ARCH = "aarch64" ]; then + _CONFIGURE_TARGET="--force-target=arm64-v8a-android-gcc" + elif [ $TERMUX_ARCH = "x86_64" ]; then + export AS=yasm + export LD=$CC + _CONFIGURE_TARGET="--target=x86_64-android-gcc" else echo "Unsupported arch: $TERMUX_ARCH" exit 1 fi $TERMUX_PKG_SRCDIR/configure \ --sdk-path=$NDK \ - --target=$_CONFIGURE_TARGET \ + $_CONFIGURE_TARGET \ --prefix=$TERMUX_PREFIX \ --disable-examples \ --disable-vp8 \