diff --git a/pkgconfig/gstreamer-plugins-base-uninstalled.pc.in b/pkgconfig/gstreamer-plugins-base-uninstalled.pc.in index 34c61814b3..300b04b479 100644 --- a/pkgconfig/gstreamer-plugins-base-uninstalled.pc.in +++ b/pkgconfig/gstreamer-plugins-base-uninstalled.pc.in @@ -10,7 +10,7 @@ Name: GStreamer Base Plugins Libraries, Uninstalled Description: Streaming media framework, base plugins libraries, uninstalled Version: @VERSION@ Requires: gstreamer-@GST_API_VERSION@ -Libs: -L@allocatorslibdir@ -L@applibdir@ -L@audiolibdir@ -L@fftlibdir@ -L@pbutilslibdir@ -L@rifflibdir@ -L@rtplibdir@ -L@rtsplibdir@ -L@sdplibdir@ -L@taglibdir@ -L@videolibdir@ -L@gllibdir@ +Libs: -L@allocatorslibdir@ -L@applibdir@ -L@audiolibdir@ -L@fftlibdir@ -L@pbutilslibdir@ -L@rifflibdir@ -L@rtplibdir@ -L@rtsplibdir@ -L@sdplibdir@ -L@taglibdir@ -L@videolibdir@ @glliblinkerflag@ Cflags: -I@abs_top_srcdir@/gst-libs -I@abs_top_builddir@/gst-libs -libraries=allocators app audio fft pbutils riff rtp rtsp sdp tag video gl +libraries=allocators app audio fft pbutils riff rtp rtsp sdp tag video @gl_lib_name@ diff --git a/pkgconfig/gstreamer-plugins-base.pc.in b/pkgconfig/gstreamer-plugins-base.pc.in index a0f15beda9..89292ae7b5 100644 --- a/pkgconfig/gstreamer-plugins-base.pc.in +++ b/pkgconfig/gstreamer-plugins-base.pc.in @@ -11,4 +11,4 @@ Version: @VERSION@ Libs: -L${libdir} Cflags: -I${includedir} -libraries=allocators app audio fft pbutils riff rtp rtsp sdp tag video gl +libraries=allocators app audio fft pbutils riff rtp rtsp sdp tag video @gl_lib_name@ diff --git a/pkgconfig/meson.build b/pkgconfig/meson.build index 99827030b4..bd54d01e98 100644 --- a/pkgconfig/meson.build +++ b/pkgconfig/meson.build @@ -44,11 +44,17 @@ pkg_files = [ # XXX: requires the meson.build to be parsed/executed after gst-libs/gl/meson.build if build_gstgl - pkgconf.set('gllibdir', join_paths(meson.build_root(), gstgl.outdir())) + gllibdir = join_paths(meson.build_root(), gstgl.outdir()) + pkgconf.set('gllibdir', gllibdir) + pkgconf.set('glliblinkerflag', '-L' + gllibdir) pkg_files += ['gstreamer-gl'] pkgconf.set('GL_APIS', ' '.join(enabled_gl_apis)) pkgconf.set('GL_WINDOWS', ' '.join(enabled_gl_winsys)) pkgconf.set('GL_PLATFORMS', ' '.join(enabled_gl_platforms)) + pkgconf.set('gl_lib_name', 'gl') +else + pkgconf.set('glliblinkerflag', '') + pkgconf.set('gl_lib_name', '') endif foreach p : pkg_files