[FFmpeg-devel] [PATCH] compilation fix Solaris nanosleep
Fabian Groffen
grobian
Tue Feb 17 11:14:41 CET 2009
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?
--
Fabian Groffen
Gentoo on a different level
-------------- next part --------------
* grobian at gentoo.org: the use of nanosleep requires librealtime (-lrt)
on Solaris, OpenSolaris however doesn't need it
anymore
--- configure
+++ configure
@@ -1906,6 +1906,9 @@
check_lib math.h sin -lm
+# Solaris has nanosleep in -lrt, OpenSolaris no longer needs that
+check_lib time.h nanosleep -lrt
+
# test for C99 functions in math.h
for func in llrint lrint lrintf round roundf truncf; do
check_exec <<EOF && enable $func || disable $func
More information about the ffmpeg-devel
mailing list