# -Wl,--no-as-needed is needed for recent gold linker who seems to think
# it knows better and considers libraries with constructors having
# side-effects as dead code.
-babeltrace_LDFLAGS = -Wl,--no-as-needed
+babeltrace_LDFLAGS = $(LD_NO_AS_NEEDED)
babeltrace_LDADD = \
$(top_builddir)/lib/libbabeltrace.la \
$(top_builddir)/formats/ctf/libbabeltrace-ctf.la \
$(top_builddir)/formats/bt-dummy/libbabeltrace-dummy.la \
$(top_builddir)/formats/lttng-live/libbabeltrace-lttng-live.la
+if ENABLE_DEBUG_INFO
+babeltrace_LDADD += $(top_builddir)/lib/libdebug-info.la
+endif
+
babeltrace_log_SOURCES = babeltrace-log.c
babeltrace_log_LDADD = \