if LTTNG_TOOLS_HAVE_UST
ltt_sessiond_SOURCES += \
trace-ust.c \
- ust-app.c \
- ust-comm.c ust-comm.h \
- ust-ctl.c
+ ust-app.c
endif
# link on liblttngctl for check if sessiond is already alive.
$(top_builddir)/liblttng-sessiond-comm/liblttng-sessiond-comm.la \
$(top_builddir)/libkernelctl/libkernelctl.la \
$(top_builddir)/liblttngctl/liblttngctl.la
+
+if LTTNG_TOOLS_HAVE_UST
+ltt_sessiond_LDADD += -llttng-ust-comm -lustctl
+endif