From dc58067e5a8b6717acd5c2d9031755aeb67e7cc1 Mon Sep 17 00:00:00 2001 From: Christian Babeux Date: Tue, 27 Nov 2012 17:16:28 -0500 Subject: [PATCH] Fix: liblttng-ust-tracepoint missing symbols when using ld "no-undefined" 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. --- liblttng-ust/Makefile.am | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/liblttng-ust/Makefile.am b/liblttng-ust/Makefile.am index e68953a3..36cb9a25 100644 --- a/liblttng-ust/Makefile.am +++ b/liblttng-ust/Makefile.am @@ -12,7 +12,10 @@ liblttng_ust_tracepoint_la_SOURCES = \ 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 -- 2.34.1