media-tv/mythtv: filter LTO

Initially found 0fe8f246b7758fc01ae044ed99af1e4ca19b4042 via this
when looking to sync with ffmpeg but turns out there's mythtv-specific
lto-type-mismatch issues so nevermind.

Closes: https://bugs.gentoo.org/860987
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James 2025-07-23 21:40:44 +01:00
parent 166dd35759
commit b0e387303c
No known key found for this signature in database
GPG Key ID: 738409F520DF9190

View File

@ -273,6 +273,13 @@ src_configure() {
myconf+=( --enable-symbol-visibility )
myconf+=( --enable-pic )
# libavformat/format.c:37:22: error: type of 'ff_mythtv_mpegtsraw_demuxer' does not match original declaration [-Werror=lto-type-mismatch]
# libavformat/mpegts-mythtv.c:3731:21: note: type 'const struct FFInputFormat' should match type 'struct AVInputFormat'
filter-lto
# Needed just like ffmpeg (bug #860987)
tc-is-lto && myconf+=( --enable-lto )
if tc-is-cross-compiler ; then
myconf+=( --enable-cross-compile --arch=$(tc-arch-kernel) )
myconf+=( --cross-prefix="${CHOST}"- )