Ticket #13653: 0007-update-config-to-pass-enable-lto-to-ffmpeg-and-expor.patch

File 0007-update-config-to-pass-enable-lto-to-ffmpeg-and-expor.patch, 1.6 KB (added by Gary Buhrmaster, 4 months ago)

update config to pass enable-lto to ffmpeg and export appropriate QMAKE vars

  • mythtv/configure

    From 02e0ed592d804394bc5041a1594698760fd21ae3 Mon Sep 17 00:00:00 2001
    From: Gary Buhrmaster <gary.buhrmaster@gmail.com>
    Date: Tue, 14 Jul 2020 15:11:54 +0000
    Subject: [PATCH 7/7] update config to pass enable-lto to ffmpeg and export
     appropriate QMAKE vars
    
    ---
     mythtv/configure | 8 ++++++++
     1 file changed, 8 insertions(+)
    
    diff --git a/mythtv/configure b/mythtv/configure
    index 9c231921e5..5709c9f1aa 100755
    a b check_optflags -fno-signed-zeros 
    63746374if enabled lto; then
    63756375    test "$cc_type" != "$ld_type" && die "LTO requires same compiler and linker"
    63766376    check_cflags  -flto
     6377    check_cxxflags -flto
    63776378    check_ldflags -flto $cpuflags
    63786379    disable inline_asm_direct_symbol_refs
    63796380fi
    ffmpeg_optset arch cross_prefix sysroot sysinclude cc cxx ld cpu 
    72187219ffmpeg_optset extra_cxxflags extra_ldflags target_os
    72197220ffmpeg_optset pkg_config prefix libdir as objcc dep_cc host_cc
    72207221ffmpeg_optset host_ld
     7222ffmpeg_optset ar nm ranlib
    72217223ffmpeg_optenable cross_compile libmp3lame libx264 libx265 libvpx libxvid
    72227224ffmpeg_optenable vdpau libxml2 libass dxva2
    72237225ffmpeg_optenable libbluray libfontconfig libfreetype libiec61883
    if enabled gnutls; then 
    72567258    ffopts="$ffopts --enable-gnutls"
    72577259fi
    72587260
     7261if enabled lto; then
     7262    ffopts="$ffopts --enable-lto"
     7263fi
     7264
    72597265ffmpeg_extra_cflags="$extra_cflags -w"
    72607266
    72617267## Call FFmpeg configure here
    DEPX86ASMFLAGS=\$(X86ASMFLAGS) 
    75867592AR=$ar
    75877593ARFLAGS=$arflags
    75887594AR_O=$ar_o
     7595QMAKE_AR=$ar $arflags
    75897596RANLIB=$ranlib
     7597QMAKE_RANLIB=$ranlib
    75907598STRIP=$strip
    75917599STRIPTYPE=$striptype
    75927600NVCC=$nvcc