examples: don't link testchannels example with system libgstaudio
authorChristophe Fergeau <cfergeau@redhat.com>
Wed, 8 Jun 2011 09:33:07 +0000 (11:33 +0200)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Wed, 8 Jun 2011 11:14:20 +0000 (12:14 +0100)
The testchannels audio test program is using -lgstaudio-0.10 to link
with libgstaudio which won't use the gstaudio library that was just
built but the one from the system. This is an issue since it means
we won't be testing the code from the current source tree, and it
also breaks the build when building on a system which don't have
a libgstaudio yet.

https://bugzilla.gnome.org/show_bug.cgi?id=652100

tests/examples/audio/Makefile.am

index f4a844a..e0cc5ef 100644 (file)
@@ -2,5 +2,6 @@
 noinst_PROGRAMS = testchannels
 testchannels_SOURCES = testchannels.c
 testchannels_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_CFLAGS)
-testchannels_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstaudio-$(GST_MAJORMINOR) $(GST_LIBS)
+testchannels_LDADD = $(top_builddir)/gst-libs/gst/audio/libgstaudio-$(GST_MAJORMINOR).la \
+                     $(GST_LIBS)