tracers: Only link against libgstprintf.la if the debugging system is enabled

It does not exist otherwise and linking will fail.
This commit is contained in:
Sebastian Dröge 2015-10-07 12:01:16 +01:00
parent 29d11c4566
commit 2b8413e1cd

View file

@ -9,8 +9,10 @@ endif
if GST_DISABLE_GST_DEBUG
LOG_SOURCES =
GST_PRINTF_LA =
else
LOG_SOURCES = gstlog.c
GST_PRINTF_LA = $(top_builddir)/gst/printf/libgstprintf.la
endif
libgstcoretracers_la_DEPENDENCIES = $(top_builddir)/gst/libgstreamer-@GST_API_VERSION@.la
@ -24,7 +26,7 @@ libgstcoretracers_la_SOURCES = \
libgstcoretracers_la_CFLAGS = $(GST_OBJ_CFLAGS) \
-DGST_USE_UNSTABLE_API
libgstcoretracers_la_LIBADD = \
$(top_builddir)/gst/printf/libgstprintf.la \
$(GST_PRINTF_LA) \
$(GST_OBJ_LIBS)
libgstcoretracers_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
libgstcoretracers_la_LIBTOOLFLAGS = $(GST_PLUGIN_LIBTOOLFLAGS)