media-video/ffmpeg: use tc-is-lto instead of error-prone is-flagq

is-flagq won't pick up on e.g. -fno-lto appended.

Closes: https://bugs.gentoo.org/909572
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2024-01-23 18:41:15 +00:00
parent a8d29f0d15
commit 47a2a87a95
8 changed files with 8 additions and 8 deletions

View File

@@ -483,7 +483,7 @@ multilib_src_configure() {
done
# LTO support, bug #566282, bug #754654, bug #772854
[[ ${ABI} != x86 ]] && is-flagq "-flto*" && myconf+=( "--enable-lto" )
[[ ${ABI} != x86 ]] && tc-is-lto && myconf+=( "--enable-lto" )
filter-lto
# Mandatory configuration

View File

@@ -473,7 +473,7 @@ multilib_src_configure() {
done
# LTO support, bug #566282, bug #754654, bug #772854
[[ ${ABI} != x86 ]] && is-flagq "-flto*" && myconf+=( "--enable-lto" )
[[ ${ABI} != x86 ]] && tc-is-lto && myconf+=( "--enable-lto" )
filter-lto
# Mandatory configuration

View File

@@ -472,7 +472,7 @@ multilib_src_configure() {
done
# LTO support, bug #566282, bug #754654, bug #772854
[[ ${ABI} != x86 ]] && is-flagq "-flto*" && myconf+=( "--enable-lto" )
[[ ${ABI} != x86 ]] && tc-is-lto && myconf+=( "--enable-lto" )
filter-lto
# Mandatory configuration

View File

@@ -470,7 +470,7 @@ multilib_src_configure() {
done
# LTO support, bug #566282, bug #754654, bug #772854
[[ ${ABI} != x86 ]] && is-flagq "-flto*" && myconf+=( "--enable-lto" )
[[ ${ABI} != x86 ]] && tc-is-lto && myconf+=( "--enable-lto" )
filter-lto
# Mandatory configuration

View File

@@ -469,7 +469,7 @@ multilib_src_configure() {
done
# LTO support, bug #566282, bug #754654, bug #772854
[[ ${ABI} != x86 ]] && is-flagq "-flto*" && myconf+=( "--enable-lto" )
[[ ${ABI} != x86 ]] && tc-is-lto && myconf+=( "--enable-lto" )
filter-lto
# Mandatory configuration

View File

@@ -482,7 +482,7 @@ multilib_src_configure() {
done
# LTO support, bug #566282, bug #754654, bug #772854
if [[ ${ABI} != x86 ]] && is-flagq "-flto*"; then
if [[ ${ABI} != x86 ]] && tc-is-lto; then
# Respect -flto value, e.g -flto=thin
local v="$(get-flag flto)"
[[ -n ${v} ]] && myconf+=( "--enable-lto=${v}" ) || myconf+=( "--enable-lto" )

View File

@@ -476,7 +476,7 @@ multilib_src_configure() {
done
# LTO support, bug #566282, bug #754654, bug #772854
if [[ ${ABI} != x86 ]] && is-flagq "-flto*"; then
if [[ ${ABI} != x86 ]] && tc-is-lto; then
# Respect -flto value, e.g -flto=thin
local v="$(get-flag flto)"
[[ -n ${v} ]] && myconf+=( "--enable-lto=${v}" ) || myconf+=( "--enable-lto" )

View File

@@ -475,7 +475,7 @@ multilib_src_configure() {
done
# LTO support, bug #566282, bug #754654, bug #772854
if [[ ${ABI} != x86 ]] && is-flagq "-flto*"; then
if [[ ${ABI} != x86 ]] && tc-is-lto; then
# Respect -flto value, e.g -flto=thin
local v="$(get-flag flto)"
[[ -n ${v} ]] && myconf+=( "--enable-lto=${v}" ) || myconf+=( "--enable-lto" )