libx264: Fix i686 build with NDK r16

This commit is contained in:
Fredrik Fornwall 2017-11-15 22:33:36 +01:00
parent ef6ddba894
commit 2b12322b66
1 changed files with 3 additions and 0 deletions

View File

@ -14,6 +14,9 @@ termux_step_pre_configure () {
# Avoid text relocations on i686, see:
# https://mailman.videolan.org/pipermail/x264-devel/2016-March/011589.html
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --disable-asm"
# Avoid errors such as "relocation R_386_GOTOFF against preemptible symbol
# x264_significant_coeff_flag_offset cannot be used when making a shared object":
LDFLAGS+=" -fuse-ld=bfd"
elif [ $TERMUX_ARCH = "x86_64" ]; then
AS=yasm
fi