commit:     dc09684ebe4f8e06660775f8492c32219eec67cc
Author:     Eli Schwartz <eschwartz93 <AT> gmail <DOT> com>
AuthorDate: Thu Jan 18 21:28:46 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Jan 24 06:54:38 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dc09684e

media-video/ffmpeg-chromium: migrate checking for enabled lto, to tc-is-lto

This toolchain func was recently added, and is a lot more reliable than
get-flagq, for example if the active flags contain `-flto -fno-lto` then
tc-is-lto gets it correct. We would rather use this wherever possible.

Signed-off-by: Eli Schwartz <eschwartz93 <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 media-video/ffmpeg-chromium/ffmpeg-chromium-120.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/media-video/ffmpeg-chromium/ffmpeg-chromium-120.ebuild 
b/media-video/ffmpeg-chromium/ffmpeg-chromium-120.ebuild
index 26434d60d9c9..fedbdea1192e 100644
--- a/media-video/ffmpeg-chromium/ffmpeg-chromium-120.ebuild
+++ b/media-video/ffmpeg-chromium/ffmpeg-chromium-120.ebuild
@@ -174,7 +174,7 @@ 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" )

Reply via email to