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

Fabian Groffen grobian
Sun Feb 15 14:56:12 CET 2009


nanosleep is found in librt on Solaris, patch attached.

/Gentoo/var/tmp/portage/media-video/ffmpeg-0.4.9_p20090201/work/ffmpeg/libavdevice/libavdevice.so: undefined reference to `nanosleep'
collect2: ld returned 1 exit status


-- 
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
@@ -1437,6 +1437,7 @@
         SHFLAGS='-shared -Wl,-h,$$(@F)'
         network_extralibs="-lsocket -lnsl"
         add_cflags -D__EXTENSIONS__
+        osextralibs="-lrt"
         ;;
     netbsd)
         oss_demuxer_extralibs="-lossaudio"



More information about the ffmpeg-devel mailing list