Commit 06891b17 authored by Xiang, Haihao's avatar Xiang, Haihao

va/test: Fix DSO link issue

I didn't see this issue until I upgraded my system recently.
It's evident the default behavior of the linker is changed.
Explicitly adding the missing libraries to the link step can resolve
this issue.
Signed-off-by: default avatarXiang, Haihao <haihao.xiang@intel.com>
parent fde78c44
......@@ -24,7 +24,7 @@ bin_PROGRAMS = mpeg2vldemo
INCLUDES = -I$(top_srcdir)
TEST_LIBS = $(top_builddir)/va/$(libvabackendlib)
TEST_LIBS = $(top_builddir)/va/$(libvabackendlib) $(top_builddir)/va/$(libvacorelib) -lX11
mpeg2vldemo_LDADD = $(TEST_LIBS)
mpeg2vldemo_SOURCES = mpeg2vldemo.cpp
......
......@@ -24,7 +24,7 @@ bin_PROGRAMS = h264encode avcenc
INCLUDES = -I$(top_srcdir)
TEST_LIBS = $(top_builddir)/va/$(libvabackendlib)
TEST_LIBS = $(top_builddir)/va/$(libvabackendlib) $(top_builddir)/va/$(libvacorelib) -lpthread -lX11
h264encode_LDADD = $(TEST_LIBS)
h264encode_SOURCES = h264encode_x11.c
......
......@@ -24,7 +24,7 @@ bin_PROGRAMS = putsurface
INCLUDES = -I$(top_srcdir)
TEST_LIBS = $(top_builddir)/va/$(libvabackendlib) -lpthread
TEST_LIBS = $(top_builddir)/va/$(libvabackendlib) $(top_builddir)/va/$(libvacorelib) -lpthread -lX11
putsurface_LDADD = $(TEST_LIBS)
putsurface_SOURCES = putsurface_x11.c
......
......@@ -25,7 +25,8 @@ bin_PROGRAMS = vainfo
INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/test/basic
vainfo_LDADD = $(top_builddir)/va/$(libvacorelib) $(top_builddir)/va/$(libvabackendlib)
vainfo_LDADD = $(top_builddir)/va/$(libvacorelib) $(top_builddir)/va/$(libvabackendlib) -lX11
vainfo_DEPENDENCIES = $(top_builddir)/va/$(libvacorelib) $(top_builddir)/va/$(libvabackendlib)
vainfo_SOURCES = vainfo.c
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment