respect debug flag in x264 build scripts

This commit is contained in:
Taner Sener 2022-04-15 15:35:51 +01:00
parent 4cc9408596
commit 2cd3543a2e
2 changed files with 10 additions and 0 deletions

View File

@ -2,6 +2,7 @@
# SET BUILD OPTIONS # SET BUILD OPTIONS
ASM_OPTIONS="" ASM_OPTIONS=""
DEBUG_OPTIONS=""
case ${ARCH} in case ${ARCH} in
x86) x86)
@ -22,6 +23,9 @@ x86-64)
export CFLAGS="${CFLAGS} -mno-stackrealign" export CFLAGS="${CFLAGS} -mno-stackrealign"
;; ;;
esac esac
if [[ -n ${FFMPEG_KIT_DEBUG} ]]; then
DEBUG_OPTIONS="--enable-debug"
fi
# ALWAYS CLEAN THE PREVIOUS BUILD # ALWAYS CLEAN THE PREVIOUS BUILD
make distclean 2>/dev/null 1>/dev/null make distclean 2>/dev/null 1>/dev/null
@ -38,6 +42,7 @@ fi
--enable-static \ --enable-static \
--disable-cli \ --disable-cli \
${ASM_OPTIONS} \ ${ASM_OPTIONS} \
${DEBUG_OPTIONS} \
--host="${HOST}" || return 1 --host="${HOST}" || return 1
make -j$(get_cpu_count) || return 1 make -j$(get_cpu_count) || return 1

View File

@ -2,6 +2,7 @@
# SET BUILD OPTIONS # SET BUILD OPTIONS
ASM_OPTIONS="" ASM_OPTIONS=""
DEBUG_OPTIONS=""
case ${ARCH} in case ${ARCH} in
i386 | x86-64*) i386 | x86-64*)
ASM_OPTIONS="--disable-asm" ASM_OPTIONS="--disable-asm"
@ -14,6 +15,9 @@ i386 | x86-64*)
export AS="$(command -v nasm)" export AS="$(command -v nasm)"
;; ;;
esac esac
if [[ -n ${FFMPEG_KIT_DEBUG} ]]; then
DEBUG_OPTIONS="--enable-debug"
fi
# ALWAYS CLEAN THE PREVIOUS BUILD # ALWAYS CLEAN THE PREVIOUS BUILD
make distclean 2>/dev/null 1>/dev/null make distclean 2>/dev/null 1>/dev/null
@ -37,6 +41,7 @@ ${SED_INLINE} 's/\-arch arm64//g' "${BASEDIR}"/src/"${LIB_NAME}"/configure 1>>"$
--enable-static \ --enable-static \
--disable-cli \ --disable-cli \
${ASM_OPTIONS} \ ${ASM_OPTIONS} \
${DEBUG_OPTIONS} \
--host="${HOST}" || return 1 --host="${HOST}" || return 1
make -j$(get_cpu_count) || return 1 make -j$(get_cpu_count) || return 1