Ticket #1015: MPlayer-1.0rc2-v4l2-tv-pthread.diff

File MPlayer-1.0rc2-v4l2-tv-pthread.diff, 919 bytes (added by r.schwebel@…, 18 years ago)

patch: add libpthread if v4l2 tv is selected.

  • MPlayer-1.0rc2

    Subject: mplayer: v4l2 tv needs pthreads
    
    When the v4l2 tv interface is used, it needs -lpthread in order to link
    correctly. Otherwhise we get this one:
    
    stream/stream.a(tvi_v4l2.o): In function `uninit':
    tvi_v4l2.c:(.text+0x325c): undefined reference to `pthread_join'
    tvi_v4l2.c:(.text+0x351c): undefined reference to `pthread_join'
    
    Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
    
    ---
     configure |    1 +
     1 file changed, 1 insertion(+)
    
    old new if test "$_tv_v4l2" = yes ; then  
    68676867  _def_tv_v4l='#define HAVE_TV_V4L 1'
    68686868  _def_tv_v4l2='#define HAVE_TV_V4L2 1'
    68696869  _inputmodules="tv-v4l2 $_inputmodules"
     6870  _ld_extra="$_ld_extra -lpthread"
    68706871else
    68716872  _noinputmodules="tv-v4l2 $_noinputmodules"
    68726873  _def_tv_v4l2='#undef HAVE_TV_V4L2'