examples: fix linking order.
authorEdward Hervey <bilboed@bilboed.com>
Sat, 24 Oct 2009 11:19:08 +0000 (13:19 +0200)
committerEdward Hervey <bilboed@bilboed.com>
Sat, 24 Oct 2009 11:21:05 +0000 (13:21 +0200)
the uninstalled wrapper would create a LD_LIBRARY_PATH with system-wide
path before the local ones... resulting in the example applications picking
up the system-wide libraries and not the (potentially modified) uninstalled
libraries

tests/examples/app/Makefile.am
tests/examples/seek/Makefile.am
tests/examples/v4l/Makefile.am

index 375e27e..7d721b4 100644 (file)
@@ -5,8 +5,8 @@ noinst_PROGRAMS = appsrc_ex appsrc-stream appsrc-stream2 appsrc-ra \
 appsrc_ex_SOURCES = appsrc_ex.c
 appsrc_ex_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_CFLAGS)
 appsrc_ex_LDFLAGS = \
-    $(GST_LIBS) \
-    $(top_builddir)/gst-libs/gst/app/libgstapp-@GST_MAJORMINOR@.la
+    $(top_builddir)/gst-libs/gst/app/libgstapp-@GST_MAJORMINOR@.la \
+    $(GST_LIBS)
 
 appsrc_stream_SOURCES = appsrc-stream.c
 appsrc_stream_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_CFLAGS)
@@ -27,6 +27,6 @@ appsrc_seekable_LDFLAGS = $(GST_LIBS)
 appsink_src_SOURCES = appsink-src.c
 appsink_src_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_CFLAGS)
 appsink_src_LDFLAGS = \
-    $(GST_LIBS) \
-    $(top_builddir)/gst-libs/gst/app/libgstapp-@GST_MAJORMINOR@.la
+    $(top_builddir)/gst-libs/gst/app/libgstapp-@GST_MAJORMINOR@.la \
+    $(GST_LIBS)
 
index 9969d5a..feadfd9 100644 (file)
@@ -6,6 +6,8 @@ examples = $(GTK_EXAMPLES) stepping stepping2
 
 noinst_PROGRAMS = $(examples)
 
-LDADD = $(GST_LIBS) $(GTK_LIBS) \
-       $(top_builddir)/gst-libs/gst/interfaces/libgstinterfaces-@GST_MAJORMINOR@.la
+LDADD = \
+       $(top_builddir)/gst-libs/gst/interfaces/libgstinterfaces-@GST_MAJORMINOR@.la \
+       $(GST_LIBS) $(GTK_LIBS)
+
 AM_CFLAGS = $(GST_CFLAGS) $(GST_BASE_CFLAGS) $(GST_PLUGINS_BASE_CFLAGS) $(GTK_CFLAGS) -I$(top_builddir)/gst-libs
index fae35d4..6132cdc 100644 (file)
@@ -3,7 +3,8 @@ noinst_PROGRAMS = probe
 probe_SOURCES = probe.c
 probe_CFLAGS  = $(GST_PLUGINS_BASE_CFLAGS) \
                $(GST_BASE_CFLAGS) $(GST_CFLAGS)
-probe_LDFLAGS = $(GST_PLUGINS_BASE_LIBS) \
-               $(GST_BASE_LIBS) $(GST_LIBS) \
-               $(top_builddir)/gst-libs/gst/interfaces/libgstinterfaces-@GST_MAJORMINOR@.la
+probe_LDFLAGS = \
+               $(top_builddir)/gst-libs/gst/interfaces/libgstinterfaces-@GST_MAJORMINOR@.la \
+               $(GST_PLUGINS_BASE_LIBS) \
+               $(GST_BASE_LIBS) $(GST_LIBS)