summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2016-04-04 12:39:39 +0300
committerSebastian Dröge <sebastian@centricular.com>2016-04-04 12:39:39 +0300
commitcf064134eeb672d47bc75f0682e688f5d9ae46b9 (patch)
tree4323f8e40868430d984b9f67b8dd55848fac0651
parent60dd95849fccc35e9e676eebbbbe920811017079 (diff)
examples: Clean up CFLAGS/LDADD to link with the correct versions of all libraries
-rw-r--r--examples/Makefile.am20
1 files changed, 15 insertions, 5 deletions
diff --git a/examples/Makefile.am b/examples/Makefile.am
index ca5c913..f27a5ed 100644
--- a/examples/Makefile.am
+++ b/examples/Makefile.am
@@ -14,11 +14,21 @@ noinst_PROGRAMS += test-cgroups
LDADD += $(LIBCGROUP_LIBS)
endif
-test_netclock_LDFLAGS = \
+test_netclock_CFLAGS = \
+ $(GST_NET_CFAGS) \
+ $(GST_CFLAGS) \
+ $(AM_CFLAGS)
+test_netclock_LDADD = \
+ $(GST_NET_LIBS) \
$(GST_LIBS) \
- -lgstnet-@GST_API_VERSION@ \
- $(top_builddir)/gst/rtsp-server/libgstrtspserver-@GST_API_VERSION@.la
+ $(top_builddir)/gst/rtsp-server/libgstrtspserver-@GST_API_VERSION@.la \
+ $(LDADD)
-test_netclock_client_LDFLAGS = \
+test_netclock_client_CFLAGS = \
+ $(GST_NET_CFAGS) \
+ $(GST_CFLAGS) \
+ $(AM_CFLAGS)
+test_netclock_client_LDADD = \
+ $(GST_NET_LIBS) \
$(GST_LIBS) \
- -lgstnet-@GST_API_VERSION@
+ $(LDADD)