OSDN Git Service

test/avcenc: link with -lpthread.
authorZhao Yakui <yakui.zhao@intel.com>
Wed, 1 Aug 2012 19:52:56 +0000 (15:52 -0400)
committerXiang, Haihao <haihao.xiang@intel.com>
Tue, 28 May 2013 08:46:48 +0000 (16:46 +0800)
Otherwise it will complain during compiling:
usr/bin/ld: avcenc.o: undefined reference to symbol 'pthread_create@@GLIBC_2.2.5'
/usr/bin/ld: note: 'pthread_create@@GLIBC_2.2.5' is defined in DSO

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
test/encode/Makefile.am

index 8947850..5505c77 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