[FFmpeg-devel] [PATCH]Disable inline_asm_direct_symbol_refs for lto

Michael Niedermayer michaelni at gmx.at
Sun May 4 02:48:22 CEST 2014


On Sat, May 03, 2014 at 09:01:55AM +0200, Carl Eugen Hoyos wrote:
> Hi!
> 
> Attached patch fixes compilation with --enable-lto and a recent gcc if h264 
> and hevc are disabled.
> Fixes a part of ticket #2941.
> 
> Please comment, Carl Eugen

>  configure |    1 +
>  1 file changed, 1 insertion(+)
> 1ebcb9b8e502ad00eb2d28513e36aa092d887fe9  patchltogcc.diff
> diff --git a/configure b/configure
> index dd7ac79..5b34d1f 100755
> --- a/configure
> +++ b/configure
> @@ -4904,6 +4904,7 @@ if enabled lto; then
>      test "$cc_type" != "$ld_type" && die "LTO requires same compiler and linker"
>      check_cflags  -flto
>      check_ldflags -flto $cpuflags
> +    disable inline_asm_direct_symbol_refs
>  fi

why is inline_asm_direct_symbol_refs not disabled automatically ?
is ths inline_asm_direct_symbol_refs test run after adding the lto
flags ?

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

It is dangerous to be right in matters on which the established authorities
are wrong. -- Voltaire
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140504/7d20c78a/attachment.asc>


More information about the ffmpeg-devel mailing list