[FFmpeg-devel] [PATCH] compilation fix Solaris nanosleep

Måns Rullgård mans
Tue Feb 17 11:38:46 CET 2009


Fabian Groffen <grobian at gentoo.org> writes:

> On 16-02-2009 10:44:12 +0000, M?ns Rullg?rd wrote:
>> > I tested that, and yes it works on (64-bits) OpenSolaris too, the
>> > library is still around there.  It doesn't break.  If you have access to
>> > the CHOST, it would be possible to check for >= *-solaris2.11 and skip
>> > -lrt there.
>> 
>> A better option would be to check for it with and without -lrt
>> regardless of OS.  We already do similar things for some other
>> functions.
>
> Thanks for your suggestion.  I tried 
>
>   check_lib time.h nanosleep -lrt
>
> as in the attached patch, however, that causes -lrt to be used on the
> final link line on OpenSolaris, while this is not necessary.
>
> Do I use the check_lib function in a wrong way?

Check without -lrt first, and only add -lrt if the first check fails.

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




More information about the ffmpeg-devel mailing list