tests: add missing -lpthread link option.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Tue, 9 Oct 2012 04:21:59 +0000 (06:21 +0200)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Tue, 9 Oct 2012 04:21:59 +0000 (06:21 +0200)
Some tests (avcenc, mpeg2transcode) were using the pthread library but
were missing -lpthread link option. This regression was exhausted on
Fedora 15+ thanks to Yakui.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
test/encode/Makefile.am
test/transcode/Makefile.am

index db7f13c..2d4cc81 100644 (file)
@@ -41,7 +41,8 @@ avcenc_SOURCES                = avcenc.c
 avcenc_CFLAGS          = -I$(top_srcdir)/test/common
 avcenc_LDADD           = \
        $(top_builddir)/va/libva.la \
-       $(top_builddir)/test/common/libva-display.la
+       $(top_builddir)/test/common/libva-display.la \
+       -lpthread
 
 EXTRA_DIST = h264encode_common.c
 
index 1a79b16..feccf55 100644 (file)
@@ -29,7 +29,8 @@ mpeg2transcode_CFLAGS = -I$(top_srcdir) $(X11_CFLAGS)
 mpeg2transcode_LDADD   = \
        $(top_builddir)/va/libva.la \
        $(top_builddir)/va/libva-x11.la \
-       $(X11_LIBS)
+       $(X11_LIBS) \
+       -lpthread
 
 valgrind:      $(bin_PROGRAMS)
        for a in $(bin_PROGRAMS); do \