From 05667813ad040c39aff4e051f3555b2283c8a840 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Sat, 24 Oct 2009 13:19:08 +0200 Subject: [PATCH] examples: fix linking order. 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 | 8 ++++---- tests/examples/seek/Makefile.am | 6 ++++-- tests/examples/v4l/Makefile.am | 7 ++++--- 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/tests/examples/app/Makefile.am b/tests/examples/app/Makefile.am index 375e27e..7d721b4 100644 --- a/tests/examples/app/Makefile.am +++ b/tests/examples/app/Makefile.am @@ -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) diff --git a/tests/examples/seek/Makefile.am b/tests/examples/seek/Makefile.am index 9969d5a..feadfd9 100644 --- a/tests/examples/seek/Makefile.am +++ b/tests/examples/seek/Makefile.am @@ -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 diff --git a/tests/examples/v4l/Makefile.am b/tests/examples/v4l/Makefile.am index fae35d4..6132cdc 100644 --- a/tests/examples/v4l/Makefile.am +++ b/tests/examples/v4l/Makefile.am @@ -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) -- 2.7.4