Compare commits

...

2 Commits

Author SHA1 Message Date
71a35d1320 flto=full 2025-12-19 15:27:58 -06:00
cf27104939 small mistake on LTO_FLAG 2025-12-19 15:27:28 -06:00

View File

@@ -168,7 +168,7 @@ exec \"${realT}\" ${addFlag} \"\$@\"" >"${compilerDir}/${genericT}"
# enabling link-time optimization
if [[ ${LTO} == 'ON' ]]; then
LTO_FLAG='-flto'
LTO_FLAG='-flto=full'
CFLAGS_ARR+=("${LTO_FLAG}")
LDFLAGS_ARR+=("${LTO_FLAG}")
CONFIGURE_FLAGS+=('--enable-lto')
@@ -1011,7 +1011,9 @@ build_ffmpeg() {
LTO=OFF
for flag in "${FFMPEG_EXTRA_FLAGS[@]}"; do
if line_contains "${flag}" "${LTO_FLAG}"; then
# get rid of potential space on either side
flag="${flag//${LTO_FLAG} /}"
flag="${flag// ${LTO_FLAG}/}"
fi
ffmpegFlags+=("${flag}")
done