From 2db47c0ade98b4e4e1359dab23aa48f9b15c69b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Mon, 15 Apr 2013 12:52:51 +0400 Subject: [PATCH] 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 --- configure.ac | 6 ++++++ gst-libs/gst/vaapi/Makefile.am | 1 + 2 files changed, 7 insertions(+) diff --git a/configure.ac b/configure.ac index 700ee5e430..a91a459925 100644 --- a/configure.ac +++ b/configure.ac @@ -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 --------------------------------------------------------------------------- diff --git a/gst-libs/gst/vaapi/Makefile.am b/gst-libs/gst/vaapi/Makefile.am index 858fb910a6..6f52d472fa 100644 --- a/gst-libs/gst/vaapi/Makefile.am +++ b/gst-libs/gst/vaapi/Makefile.am @@ -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 = \