[FFmpeg-devel] [PATCH] add initial suncc support

Måns Rullgård mans
Wed Oct 28 19:57:26 CET 2009


Reimar D?ffinger <Reimar.Doeffinger at gmx.de> writes:

> On Wed, Oct 28, 2009 at 08:11:53PM +0300, Michael Kostylev wrote:
>> On Wed Oct 28 17:24:30 2009
>> Reimar D?ffinger wrote:
>> > On Wed, Oct 28, 2009 at 06:35:28PM +0300, Michael Kostylev wrote:
>> >> On Wed Oct 28 15:17:56 2009
>> >> M?ns Rullg?rd wrote:
>> >> 
>> >>>> as in subject
>> >>>>
>> >>>> Michael
>> >>>>
>> >>>> --- ./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'
>> >>>>  fi
>> >>> 
>> >>> Is suncc unable to compile and produce dependency listings at the same
>> >>> time?
>> >> 
>> >> -xMMD
>> >> but the format remains the same:
>> >> basename (target): dependency1
>> >> basename (target): dependency2
>> >> basename (target): dependency3
>> >> ...
>> 
>> Correction: -xMMD seems to work except that ALL *.d files are
>> written into the current directory.
>
> That's what -xMF is there for, just like -MF for gcc.
> I can't see how it would work though, at least for me
> only the basename is printed before the :, not the path.

And that is what gcc -MT fixes.

>> aea.o: /home/mik/src/fate/test/libavformat/aea.c \
>> ...
>>          /opt/sunstudio12.1/prod/include/cc/time.h \
>>          /opt/sunstudio12.1/prod/include/cc/features.h \
>>          /opt/sunstudio12.1/prod/include/cc/sys/cdefs.h \
>>          /opt/sunstudio12.1/prod/include/cc/stddef.h \
>>          /opt/sunstudio12.1/prod/include/cc/sys/isa_defs.h \
>>          /opt/sunstudio12.1/prod/include/cc/stdio.h \
>>          /opt/sunstudio12.1/prod/include/cc/wchar.h \
>>          /opt/sunstudio12.1/prod/include/cc/stdarg.h \
>>          /opt/sunstudio12.1/prod/include/cc/va_impl.h \
>
> Maybe that's because the stuff is in opt. I don't get that with default
> install on OpenSolaris, and the documentation says that the difference
> between -xMD and -xMMD is that the later should not have these
> -> it's a bug, we shouldn't care about it.

It doesn't break anything, so I wouldn't worry about it.  Several
other compilers do the same thing.

-- 
M?ns Rullg?rd
mans at mansr.com



More information about the ffmpeg-devel mailing list