From: Christian Babeux Date: Tue, 27 Nov 2012 22:16:28 +0000 (-0500) Subject: Fix: liblttng-ust-tracepoint missing symbols when using ld "no-undefined" X-Git-Url: http://git.lttng.org/?p=lttng-ust.git;a=commitdiff_plain;h=dc58067e5a8b6717acd5c2d9031755aeb67e7cc1 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. --- 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