From 20836836b51b9be3375869709ae708beb3682aed Mon Sep 17 00:00:00 2001 From: Julien Isorce Date: Thu, 18 Feb 2016 14:32:23 +0000 Subject: [PATCH] uninstalled.pc: add support for non libtool build systems Currently the .la path is provided which requires to use libtool as mentioned in the GStreamer manual section-helloworld-compilerun.html. It is fine as long as the application is built using libtool. So currently it is not possible to compile a GStreamer application within gst-uninstalled with CMake or other build system different than autotools. This patch allows to do the following in gst-uninstalled env: gcc test.c -o test $(pkg-config --cflags --libs gstreamer-1.0 \ gstreamer-gl-1.0) Previously it required to prepend libtool --mode=link https://bugzilla.gnome.org/show_bug.cgi?id=720778 --- pkgconfig/gstreamer-gl-uninstalled.pc.in | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgconfig/gstreamer-gl-uninstalled.pc.in b/pkgconfig/gstreamer-gl-uninstalled.pc.in index 5049f4e85..dac4cda3f 100644 --- a/pkgconfig/gstreamer-gl-uninstalled.pc.in +++ b/pkgconfig/gstreamer-gl-uninstalled.pc.in @@ -1,6 +1,6 @@ prefix= exec_prefix= -libdir= +libdir=@abs_top_builddir@/gst-libs/gst/gl/.libs includedir=@abs_top_builddir@/gst-libs girdir=@abs_top_builddir@/gst-libs/gst/base typelibdir=@abs_top_builddir@/gst-libs/gst/base @@ -10,5 +10,6 @@ Description: Streaming media framework, OpenGL plugins libraries, uninstalled Version: @VERSION@ Requires: gstreamer-base-@GST_API_VERSION@ gstreamer-@GST_API_VERSION@ -Libs: @abs_top_builddir@/gst-libs/gst/gl/libgstgl-@GST_API_VERSION@.la +Libs: -L${libdir} -lgstgl-@GST_API_VERSION@ @GL_LIBS@ Cflags: -I@abs_top_srcdir@/gst-libs -I@abs_top_builddir@/gst-libs + -- GitLab