pkg-config: Directly link the library with -l instead of the .la file
authorSebastian Dröge <sebastian@centricular.com>
Mon, 23 Jan 2017 13:10:40 +0000 (15:10 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 23 Jan 2017 13:10:40 +0000 (15:10 +0200)
Which might not exist, like on most modern Linux distributions.

pkgconfig/gstreamer-bad-audio.pc.in
pkgconfig/gstreamer-bad-base.pc.in
pkgconfig/gstreamer-bad-video.pc.in

index be90d67..fa90010 100644 (file)
@@ -9,5 +9,5 @@ Description: Bad audio library for GStreamer elements, Not Installed
 Version: @VERSION@
 Requires: gstreamer-@GST_API_VERSION@ gstreamer-bad-base-@GST_API_VERSION@
 
-Libs: -L${libdir} ${libdir}/libgstbadaudio-@GST_API_VERSION@.la
+Libs: -L${libdir} -gstbadaudio-@GST_API_VERSION@
 Cflags: -I${includedir}
index 10afe0e..cf46745 100644 (file)
@@ -12,5 +12,5 @@ Description: Bad base classes for GStreamer elements
 Version: @VERSION@
 Requires: gstreamer-@GST_API_VERSION@
 
-Libs: -L${libdir} ${libdir}/libgstbadbase-@GST_API_VERSION@.la
+Libs: -L${libdir} -lgstbadbase-@GST_API_VERSION@
 Cflags: -I${includedir}
index 40127be..43a54c0 100644 (file)
@@ -12,5 +12,5 @@ Description: Bad video library for GStreamer elements
 Version: @VERSION@
 Requires: gstreamer-@GST_API_VERSION@ gstreamer-bad-base-@GST_API_VERSION@
 
-Libs: -L${libdir} ${libdir}/libgstbadvideo-@GST_API_VERSION@.la
+Libs: -L${libdir} -lgstbadvideo-@GST_API_VERSION@
 Cflags: -I${includedir}