[FFmpeg-devel] [PATCH] Enable C99 in Solaris C library
Wed Jun 10 22:59:30 CEST 2009
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.
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.
More information about the ffmpeg-devel