reorganise android cflags for x264

development
Taner Sener 1 year ago
parent f0f16b792f
commit 6eaadd10b5
  1. 12
      scripts/android/x264.sh

@ -6,8 +6,7 @@ DEBUG_OPTIONS=""
case ${ARCH} in case ${ARCH} in
x86) x86)
# please note that asm is disabled # ENABLING ASM FOR X86 CAUSES TEXT RELOCATIONS IN libavfilter.so
# enabling asm for x86 causes text relocations in libavfilter.so
ASM_OPTIONS="--disable-asm" ASM_OPTIONS="--disable-asm"
;; ;;
x86-64) x86-64)
@ -18,9 +17,12 @@ x86-64)
export AS="$(command -v nasm)" export AS="$(command -v nasm)"
# WORKAROUND TO ENABLE X86 ASM if [[ ${API} -lt 24 ]]; then
# https://github.com/android-ndk/ndk/issues/693
export CFLAGS="${CFLAGS} -mno-stackrealign" # WORKAROUND TO ENABLE X86 ASM ON API LEVEL < 24
# https://github.com/android-ndk/ndk/issues/693
export CFLAGS="${CFLAGS} -mno-stackrealign"
fi
;; ;;
esac esac
if [[ -n ${FFMPEG_KIT_DEBUG} ]]; then if [[ -n ${FFMPEG_KIT_DEBUG} ]]; then

Loading…
Cancel
Save