build: link libgstvaapi-glx-1.0.so against libdl.

Ensure libgstvaapi-glx*.so builds against libdl since dlsym() is used
to resolve glXGetProcAddress() from GLX libraries. This fix builds on
Fedora 17.

https://bugzilla.gnome.org/show_bug.cgi?id=698046

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
This commit is contained in:
Víctor Manuel Jáquez Leal 2013-04-15 12:52:51 +04:00 committed by Gwenole Beauchesne
parent 8cce65c6f1
commit 2db47c0ade
2 changed files with 7 additions and 0 deletions

View file

@ -131,6 +131,12 @@ GLIB_VERSION_REQUIRED=glib_version
PKG_CHECK_MODULES([GLIB], [glib-2.0 >= $GLIB_VERSION_REQUIRED]) PKG_CHECK_MODULES([GLIB], [glib-2.0 >= $GLIB_VERSION_REQUIRED])
AC_SUBST(GLIB_VERSION_REQUIRED) AC_SUBST(GLIB_VERSION_REQUIRED)
dnl Check to see if dlopen is in default libraries (like Solaris, which
dnl has it in libc), or if libdl is needed to get it.
AC_CHECK_FUNC([dlopen], [], [
AC_CHECK_LIB([dl], [dlopen], [DLOPEN_LIBS="-ldl"])])
AC_SUBST([DLOPEN_LIBS])
dnl --------------------------------------------------------------------------- dnl ---------------------------------------------------------------------------
dnl -- GStreamer -- dnl -- GStreamer --
dnl --------------------------------------------------------------------------- dnl ---------------------------------------------------------------------------

View file

@ -327,6 +327,7 @@ libgstvaapi_glx_@GST_API_VERSION@_la_LIBADD = \
$(GL_LIBS) \ $(GL_LIBS) \
$(LIBVA_GLX_LIBS) \ $(LIBVA_GLX_LIBS) \
libgstvaapi-x11-$(GST_API_VERSION).la \ libgstvaapi-x11-$(GST_API_VERSION).la \
$(DLOPEN_LIBS) \
$(NULL) $(NULL)
libgstvaapi_glx_@GST_API_VERSION@_la_LDFLAGS = \ libgstvaapi_glx_@GST_API_VERSION@_la_LDFLAGS = \