Fix: liblttng-ust-tracepoint missing symbols when using ld "no-undefined"
authorChristian Babeux <christian.babeux@efficios.com>
Tue, 27 Nov 2012 22:16:28 +0000 (17:16 -0500)
committerChristian Babeux <christian.babeux@efficios.com>
Tue, 27 Nov 2012 22:16:28 +0000 (17:16 -0500)
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

index e68953a3e258313f2390545f31754bd300224835..36cb9a25038f0d871f40577bf5c40afc6b4f0f3e 100644 (file)
@@ -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
 
This page took 0.025819 seconds and 4 git commands to generate.