fix LTS_BUILD_FLAG variable in android build scripts

This commit is contained in:
Taner Sener 2022-08-21 23:21:05 +01:00
parent b2d08a5904
commit 7ca081a488

View File

@ -224,15 +224,15 @@ get_common_includes() {
get_common_cflags() { get_common_cflags() {
if [[ -n ${FFMPEG_KIT_LTS_BUILD} ]]; then if [[ -n ${FFMPEG_KIT_LTS_BUILD} ]]; then
local LTS_BUILD__FLAG="-DFFMPEG_KIT_LTS " local LTS_BUILD_FLAG="-DFFMPEG_KIT_LTS "
fi fi
case ${DETECTED_NDK_VERSION} in case ${DETECTED_NDK_VERSION} in
23*) 23*)
echo "-fstrict-aliasing -DANDROID_NDK -fPIC -DANDROID ${LTS_BUILD__FLAG}-D__ANDROID__ -D__ANDROID_MIN_SDK_VERSION__=${API}" echo "-fstrict-aliasing -DANDROID_NDK -fPIC -DANDROID ${LTS_BUILD_FLAG}-D__ANDROID__ -D__ANDROID_MIN_SDK_VERSION__=${API}"
;; ;;
*) *)
echo "-fno-integrated-as -fstrict-aliasing -DANDROID_NDK -fPIC -DANDROID ${LTS_BUILD__FLAG}-D__ANDROID__ -D__ANDROID_API__=${API}" echo "-fno-integrated-as -fstrict-aliasing -DANDROID_NDK -fPIC -DANDROID ${LTS_BUILD_FLAG}-D__ANDROID__ -D__ANDROID_API__=${API}"
;; ;;
esac esac
} }