[FFmpeg-devel] [PATCH] Enable C99 in Solaris C library

Måns Rullgård mans
Wed Jun 10 23:25:45 CEST 2009

Jeff Downs <heydowns at borg.com> writes:

> On Wed, 10 Jun 2009, M?ns Rullg?rd wrote:
>> Does the Sun 'c99' compiler include this automatically as the man page
>> seems to suggest?  If so, I would say the bug is in gcc, and we should
>> not be using this workaround.  It will fail to link if gcc is fixed or
>> the Sun compiler is used.
> Yes, Sun c99 compiler does include this automatically.
> I do agree that this could be considered a bug in gcc.

Have you reported it?

> Passing the object file to the linker multiple times (with the Sun linker) 
> generates a warning, but links successfully.  I tried this through both 
> the Sun compiler driver and gcc.
> Another way to approach this is to check execution of a small c99 test 
> program without adding the object file, then add it only if necessary.

That won't work if cross-compiling.  That's a problem with your patch

M?ns Rullg?rd
mans at mansr.com

More information about the ffmpeg-devel mailing list