mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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" )
|
||||
|
||||
@@ -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" )
|
||||
|
||||
@@ -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" )
|
||||
|
||||
Reference in New Issue
Block a user