[FFmpeg-devel] [PATCH]Fix PGC compilation

Michael Niedermayer michaelni at gmx.at
Thu Apr 18 01:34:06 CEST 2013


On Wed, Apr 17, 2013 at 10:26:12PM +0000, Carl Eugen Hoyos wrote:
> Carl Eugen Hoyos <cehoyos <at> ag.or.at> writes:
> 
> > The following fate tests also fail, I was unable 
> > to find a workaround:
> > fate-acodec-ra144
> > fate-lavf-ogg
> 
> They are both related to the compilation of 
> libavcodec/lpc.o, works with "-O" (but not -O2).
> No warnings are shown when compiling lpc.c
> 
> Following inlined patch allows compilation 
> with --disable-optimizations (which mostly 
> fixes fate except the mov crash and a failure 
> with smc, smc needs O0 or O1 or O2 or O3).
> 
> diff --git a/configure b/configure
> index f146f7e..2aff8e2 100755
> --- a/configure
> +++ b/configure
> @@ -2806,7 +2806,7 @@ probe_cc(){
>          opt_common='-alias=ansi -Mdse -Mlre -Mpre'
>          _cflags_speed="-O3 -Mautoinline -Munroll=c:4 $opt_common"
>          _cflags_size="-O2 -Munroll=c:1 $opt_common"
> -        _cflags_noopt="-O1"
> +        _cflags_noopt="-O"
>          _flags_filter=pgi_flags
>      elif $_cc 2>&1 | grep -q Microsoft; then
>          _type=msvc

above probably ok

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Many that live deserve death. And some that die deserve life. Can you give
it to them? Then do not be too eager to deal out death in judgement. For
even the very wise cannot see all ends. -- Gandalf
-------------- 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/20130418/9becb46c/attachment.asc>


More information about the ffmpeg-devel mailing list