When using the LDFLAGS="-Wl,-no-undefined", ld complains about undefined
references to ust_safe_snprintf, patient_write and init_usterr.
The fix is to add the appropriate libraries where those symbols
are defined to the libtool LIBADD flag.
jhash.h \
error.h
liblttng_ust_tracepoint_la_LIBADD = \
- -lurcu-bp
+ -lurcu-bp \
+ $(top_builddir)/snprintf/libustsnprintf.la \
+ liblttng-ust-support.la
+
liblttng_ust_tracepoint_la_LDFLAGS = -no-undefined -version-info $(LTTNG_UST_LIBRARY_VERSION)
liblttng_ust_tracepoint_la_CFLAGS = -DUST_COMPONENT="liblttng_ust_tracepoint" -fno-strict-aliasing