Commit 2db47c0a authored by Víctor Manuel Jáquez Leal's avatar Víctor Manuel Jáquez Leal Committed by Gwenole Beauchesne

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=698046Signed-off-by: default avatarGwenole Beauchesne <gwenole.beauchesne@intel.com>
parent 8cce65c6
......@@ -131,6 +131,12 @@ GLIB_VERSION_REQUIRED=glib_version
PKG_CHECK_MODULES([GLIB], [glib-2.0 >= $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 -- GStreamer --
dnl ---------------------------------------------------------------------------
......
......@@ -327,6 +327,7 @@ libgstvaapi_glx_@GST_API_VERSION@_la_LIBADD = \
$(GL_LIBS) \
$(LIBVA_GLX_LIBS) \
libgstvaapi-x11-$(GST_API_VERSION).la \
$(DLOPEN_LIBS) \
$(NULL)
libgstvaapi_glx_@GST_API_VERSION@_la_LDFLAGS = \
......
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