[FFmpeg-devel] [PATCH] add initial suncc support
Måns Rullgård
mans
Wed Oct 28 15:00:31 CET 2009
Michael Kostylev <michael.kostylev at gmail.com> writes:
> On Wed Oct 28 12:48:07 2009
> Diego Biurrun wrote:
>
>>> as in subject
>>>
>>> --- ./configure.orig
>>> +++ ./configure
>>> @@ -1594,6 +1594,11 @@
>>> cc_version=__VERSION__
>>> CC_DEPFLAGS='-MMD'
>>> AS_DEPFLAGS='-MMD'
>>> +elif $cc -V 2>&1 | grep -q Sun; then
>>> + cc_type=suncc
>>> + cc_version="AV_STRINGIFY(__SUNPRO_C)"
>>> + DEPEND_CMD='$(DEPCC) $(DEPFLAGS) $< | sed -e "1s,^.*: ,$@: ," -e "\$$!s,\$$, \\\\\\," -e "1!s,^.*: , ," > $(@:.o=.d)'
>>> + DEPFLAGS='$(CPPFLAGS) $(CFLAGS) -xM1'
>>
>> I think the DEPEND_CMD sed expression should be factorized out to
>> accomodate other compilers better. That's not really your job, however,
>> and could well be done separately.
>>
>> Oh, what do you mean by "initial support"?
>
> Suncc ignores or doesn't accept some standard gcc options, so we must
> provide the alternatives:
You could use a flag filter function for that. See tms470 for reference.
--
M?ns Rullg?rd
mans at mansr.com
More information about the ffmpeg-devel
mailing list