[FFmpeg-devel] [PATCH] Support building dependency files with non-GCC compilers
Diego 'Flameeyes' Pettenò
Fri Oct 3 12:02:26 CEST 2008
M?ns Rullg?rd <mans at mansr.com> writes:
> Why would you pass -I/usr/include? Seems pretty daft to me.
It's more like -I/usr/include/SDL ... I guess it would be an option to
sed the -I to -isystem for libraries, if supported by the compiler, it
would also mask and hide warnings coming from them from GCC, since it
will then start to understand them as system headers. It always baffles
me the fact that GCC only bases itself upon the -I given rather than
also counting in the position.
>> I've thought quickly about this but there is at least one problem:
>> CFLAGS. The flags that will be used for Sun Studio or ICC might not work
>> with GCC, and I wouldn't be surprised if GCC would then fail to properly
>> generate the dependencies. I suppose it's a bet on what is most likely,
>> I guess.
> For dependencies, only -I and -D flags are needed. We can easily
> split these out.
And eventual -isystem (for GCC) and -idirafter (for ICC; without
-idirafter/usr/include/linux I cannot get ICC to work on my box, no idea
why), and other include directives. The list might be long... and again
it might not be supported by the other compiler.
Diego "Flameeyes" Petten?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 196 bytes
Desc: not available
More information about the ffmpeg-devel